mask_slits
- jwst.clean_flicker_noise.clean_flicker_noise.mask_slits(input_model, mask)[source]
Flag pixels within science regions for NIRSpec slit modes.
Find pixels located within MOS or fixed slit footprints and flag them in the mask, so that they do not get used.
- Parameters:
- input_model
JwstDataModel Science data model.
- maskndarray of bool
2D input mask that will be updated.
Trueindicates background pixels to be used. Slit regions will be set toFalse.
- input_model
- Returns:
- maskndarray of bool
2D output mask with additional flags for slit pixels