strip_ref_pixels

jwst.refpix.irs2_subtract_reference.strip_ref_pixels(output_model, irs2_mask)[source]

Copy out the normal pixels from PIXELDQ and GROUPDQ arrays.

Parameters:
output_modelRampModel

The output science data model, to be modified in-place

irs2_maskndarray of bool

1D array of length 3200. True means the element corresponds to a normal pixel in the raw, IRS2-format data. False corresponds either to a reference output pixel or to one of the interspersed reference pixel values.