mask_slits

jwst.clean_flicker_noise.clean_flicker_noise.mask_slits(input_model, mask)[source]

Flag pixels within science regions.

Find pixels located within MOS or fixed slit footprints and flag them in the mask, so that they do not get used.

Parameters:
input_modelJwstDataModel

Science data model.

maskndarray of bool

2D input mask that will be updated. True indicates background pixels to be used. Slit regions will be set to False.

Returns:
maskndarray of bool

2D output mask with additional flags for slit pixels