pynrc.detops.nrc_header

pynrc.detops.nrc_header(det_class, filter=None, pupil=None, obs_time=None, header=None, DMS=True, targ_name=None)[source]

Simulated header

Create a generic NIRCam FITS header from a detector_ops class.

Parameters
  • filter (str) – Name of filter element.

  • pupil (str) – Name of pupil element.

  • DMS (bool) – Make the header in a format used by Data Management Systems.

  • obs_time (datetime) – Specifies when the observation was considered to be executed. If not specified, then it will choose the current time. This must be a datetime object:

    >>> datetime.datetime(2016, 5, 9, 11, 57, 5, 796686)
    
  • header (obj) – Can pass an existing header that will be updated. This has not been fully tested.

  • targ_name (str) – Standard astronomical catalog name for a target. Otherwise, it will be UNKNOWN.