apply_persistence_mask¶
- grizli.prep.apply_persistence_mask(flt_file, path='../Persistence', dq_value=1024, err_threshold=0.6, sci_threshold=0.1, grow_mask=3, subtract=True, verbose=True, reset=False)[source]¶
Make a mask for pixels flagged as being affected by persistence
Persistence products can be downloaded from https://archive.stsci.edu/prepds/persist/search.php, specifically the “_persist.fits” files.
- Parameters
- flt_filestr
Filename of the WFC3/IR FLT exposure
- pathstr
Path to look for the “persist.fits” file.
- dq_valueint
DQ bit to flip for flagged pixels
- err_thresholdfloat
ERR array threshold for defining affected pixels:
>>> flagged = persist > err_threshold*ERR
- sci_thresholdfloat
SCI array threshold for defining affected pixels (not used).
- grow_maskint
Factor by which to dilate the persistence mask.
- subtractbool
Subtract the persistence model itself from the SCI extension.
- verbosebool
Print information to the terminal
- resetbool
Unset
dq_value
bit.
- Returns
- Nothing, updates the DQ extension of
flt_file
.
- Nothing, updates the DQ extension of