get_nircam_wisp_filename

grizli.prep.get_nircam_wisp_filename(header, prefer_stsci_file=True, **kwargs)[source]

Get the path to an appropriate NIRCam wisp template file, assuming the templates are stored in [GRIZLI_PATH]/CONF/NircamWisp

Parameters
headerastropy.io.fits.Header

Primary header

prefer_stsci_filebool

Prefer STScI WISP files made by Ben Sunnquist with names like WISP_NRCB4_F182M_CLEAR.fits. See here for more information on how they were generated.

Returns
wisp_filestr

Filename of the wisp reference, or None if the header isn’t for a NIRCam exposure in F150W or F200W

_filtstr

FILTER from header

_inststr

INSTRUME from header

_detstr

DETECTOR from header

msgstr

Status message