pynrc.simul.apt.create_obs_params

pynrc.simul.apt.create_obs_params(filt, pupil, mask, det, siaf_ap, ra_dec, date_obs, time_obs='12:00:00.000', pa_v3=None, siaf_ap_obs=None, xyoff_idl=(0, 0), visit_level='TARGET', visit_type='SCIENCE', time_series=False, time_visit_offset=0, time_exp_offset=0, segNum=None, segTot=None, int_range=None, filename=None, **kwargs)[source]

Generate obs_params dictionary

An obs_params dictionary is used to create a jwst data model (e.g., Level1bModel). Additional **kwargs will add/update elements to the final output dictionary.

Parameters
  • filt (str) – Observed filter

  • pupil (str) – Observed pupil mask (e.g., GRISMR, GRISMC, CIRCLYOT, etc)

  • det (DetectorOps) – NIRCam detector operations class

  • siaf_ap (pysiaf Aperture) – SIAF aperture class used for telescope pointing

  • ra_dec (tuple, list) – RA and Dec in degrees associated with observation pointing

  • data_obs (str) – YYYY-MM-DD

  • Keyword Arg

  • ===========

  • time_obs (str) – HH:MM:SS

  • pa_v3 (float or None) – Telescope V3 position angle. If set to None, then will automatically determine from date and ra/dec.

  • siaf_ap_obs (pysiaf Aperture) – SIAF aperture class used for to observe (if different from siaf_ap)

  • xyoff_idl (tuple, list) – (x,y) offset in arcsec (‘idl’ coords) to dither observation

  • visit_type (str) – ‘T_ACQ’, ‘CONFIRM’, or ‘SCIENCE’

  • time_series (bool) – Is this a time series observation?

  • time_exp_offset (float) – Exposure start time (in seconds) relative to beginning of observation execution.

  • 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

  • filename (str or None) – Name of output filename.