get_nircam_wisp_filename

grizli.prep.get_nircam_wisp_filename(header, prefer_stsci_file=True, path='/home/docs/checkouts/readthedocs.org/user_builds/grizli/envs/stable/lib/python3.10/site-packages/grizli/data/CONF/NircamWisp', download=True, bucket_prefix='grizli-v2/NircamWisp/stsci-v3/', **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.

pathstr

Local path to search / download wisp templates

downloadbool

Try to download wisp templates if not found in path. The script will first try to download with boto3 from s3://{bucket_prefix} and will fall back to https://s3.amazonaws.com/{bucket_prefix}.

bucket_prefixstr

Remote path to wisp templates, e.g., s3://{bucket_prefix}/WISP_NRCB3_F200W_CLEAR.fits

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