jwst_crds_photom_scale

grizli.utils.jwst_crds_photom_scale(hdul, context='jwst_1130.pmap', update=True, verbose=False)[source]

Scale factors between different JWST CRDS_CONTEXT

Parameters
hdulastropy.io.fits.HDUList

Exposure file HDUList, which has header keywords like CRDS_CTX, PHOTMJSR, etc.

contextstr

Target CRDS context version

updatebool

Scale photometry header keywords by the ratio of NEW_PHOTMJSR / OLD_PHOTMJSR

verbose: bool

Messaging

Returns
scalefloat

Relative photometry scaling factor NEW_PHOTMJSR / OLD_PHOTMJSR. Defaults to 1.0 if not a JWST instrument or if certain necessary header keywords not found