nircam_wisp_correction¶
- grizli.prep.nircam_wisp_correction(calibrated_file, niter=3, update=True, verbose=True, force=False, prefer_stsci_file=True, **kwargs)[source]¶
Fit the NIRCam wisp template and subtract
Wisp template files at https://stsci.app.box.com/s/1bymvf1lkrqbdn9rnkluzqk30e8o2bne?sortColumn=name&sortDirection=ASC.
and
https://s3.amazonaws.com/grizli-v2/NircamWisp/index.html
The
wisps_{detector}_{FILTER}.fits
files should be put in a directory$GRIZLI/CONF/NircamWisp
.- Parameters
- calibrated_filestr
Filename of a flat-fielded file (either
cal
or a processedrate
file)- niterint
Number of mask iterations
- updatebool
Subtract the wisp model from the ‘SCI’ extension of
calibrated_file
- verbosebool
verbosity
- forcebool
Force wisp fit, even if ‘WISPBKG’ keyword already found in header