mask_ifu_slices

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

Flag pixels within IFU slices.

Find pixels located within IFU slices, according to the WCS, 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. IFU slice regions will be set to False.

Returns:
maskndarray of bool

2D output mask with additional flags for science pixels