get_saturated_pixels¶
- grizli.jwst_utils.get_saturated_pixels(file='jw02561001002_06101_00001_nrca3_rate.fits', dq_array=None, saturated_flag='SATURATED', erode_dilate=(2, 5), rc_flag='RC', rc_iterations=2, **kwargs)[source]¶
Get list of saturated pixels, e.g., for use in persistence masking
- Parameters
- filestr
Exposure filename with “DQ” extension
- dq_arrayarray-like
- saturated_flagstr
Flag name in
jwst.datamodels.dqflags.pixelto treat as “saturated”- rc_flagstr
Flag name in
jwst.datamodels.dqflags.pixelfor the “RC” pixels to exclude- rc_iterationsint
If > 0, make a mask of pixels flagged with the “RC” bit, dilate it and exclude them from the saturated list
- Returns
- flaggedarray-like
Boolean mask of flagged pixels