pynrc.simul.ngNRC.create_level1b_FITS

pynrc.simul.ngNRC.create_level1b_FITS(sim_config, detname=None, apname=None, filter=None, visit_id=None, dry_run=None, save_slope=None, save_dms=None)[source]

Generate Level1b DMS-like FITS files.

Todo

  • Tracking image persistence

  • Static column noise that shifts every integration

  • Currently only has WFE drifts of coronagraphic on-mask stars (sci and ref)

  • Also drifts non-HCI observations, generating new PSF grids each exposure

Keyword Arguments
  • detname (None or int or str) – Option to supply a valid detector name. If set, only the currently specified SCA will be simulated.

  • apname (None or str) – Similar to detname keyword, can supply a specific SIAF aperture name that exists within the observation. Only that aperture will be simulated.

  • filter (None or str) – Specify a filter within observation to be simulated. Can be combined with detname and apname keywords. Should have the form “ABC:XYZ”, or “ObsNum:VisitNum” (e.g., “005:001” for observation 5, visit 1).

  • visit_id (None or str) – Specify the visit ID to simulate.

  • dry_run (bool or None) – Won’t generate any image data, but instead runs through each observation, printing detector info, SIAF aperture name, filter, visit IDs, exposure numbers, and dither information. If set to None, then grabs keyword from sim_config, otherwise defaults to False if not found. If paired with save_dms, then will generate an empty set of DMS FITS files with headers populated, but data set to all zeros.

  • save_slope (bool or None) – Saves noiseless slope images to a separate DMS-like FITS file that is names ‘slope_{DMSfilename}’. If set to None, then grabs keyword from sim_config, otherwise defaults to False if not found. No effect if dry_run=True.

  • save_dms (bool or None) – Option to disable simulation of ramp data and creation of DMS FITS. If dry_run=True, then setting save_dms=True will save DMS FITS files populated with all zeros. If set to None, then grabs keyword from sim_config; if no keyword is found, then defaults to True if dry_run=False, otherwise False.