add_phot_keys

sofia_redux.calibration.pipecal_util.add_phot_keys(header, phot, config=None, srcpos=None)[source]

Add photometry-related keywords to a header.

The primary input for this function (phot) should be the data structure returned by the pipecal_photometry function. All keys in this structure are added to the FITS header.

In addition, the following keys may be added or updated, from the config or srcpos input: SRCPOSX, SRCPOSY, MODLFLX, MODLFLXE, REFSTD1, REFSTD2, REFSTD3, LAMREF, LAMPIVOT, COLRCORR, REFCALZA, REFCALAW, REFCALWV, AVGCALFC, AVGCALER, and RUNITS.

Parameters:
headerastropy.io.fits.header.Header

The FITS header to update.

photlist

Photometry values, as produced by pipecal.pipecal_photometry.pipecal_photometry.

configdict-like, optional

Calibration configuration values, as produced by pipecal.pipecal_config.pipecal_config.

srcposlist-like, optional

The starting position estimate for photometry, as (x,y), zero-indexed. If provided, will be set in the SRCPOSX and SRCPOSY keywords.