pynrc.simul.apt.populate_obs_params¶
- pynrc.simul.apt.populate_obs_params(visit_dict, exp_id, detname, date_obs, time_obs='12:00:00.000', pa_v3=None, segNum=None, segTot=None, int_range=None, det=None, obs_params=None, grp_id=1, seq_id=1, act_id='01', **kwargs)[source]¶
Create obs_params from visit dictionary
An obs_params dictionary is used to create a jwst data model (e.g., Level1bModel). If passing
obs_params
parameter, this gets updated based on the input arguments. Additional**kwargs
will add/update elements to the final output dictionary- Parameters
visit_dict (dict) – Uses gen_all_apt_visits() to create a dictionary of visit information. Each visit has a series of exposure IDs.
exp_id (int) – Unique exposure ID generate observations
detname (str) – Options NRC[A/B][1-5]
data_obs (str) – YYYY-MM-DD
time_obs (str) – HH:MM:SS
Keyword Arg
===========
pa_v3 (float or None) – Option to specify telescope V3 position angle. If not set, then automatically calculated from RA/Dec and observation date/time.
segNum (int) – The segment number of the current product. Only for TSO.
segTot (int) – The total number of segments. Only for TSO.
int_range (list) – Integration indices to use
obs_params (dict) – An initial obs_params dictionary. Any duplicate keywords will be updated.