update_slit_dq_mask¶
- msaexp.utils.update_slit_dq_mask(slit, mask_padded=False, bar_threshold=-1, **kwargs)[source]¶
Update slit dq array and masking for padded slits and barshadow
- Parameters
- slit
jwst.datamodels.SlitModel, str Filename or data object of a 2D slitlet
- mask_paddedbool
Mask pixels of slitlets that had been padded around the nominal MSA slitlets
- bar_thresholdfloat
Mask pixels in slitlets where
barshadow < bar_threshold
- slit
- Returns
- _slit
jwst.datamodels.SlitModel Input data model with modified DQ array, or the object loaded from a file if the filename was provided
- _slit