make_mask

jwst.saturation.x_irs2.make_mask(input_model, n=None, r=None)[source]

Create a mask to extract “normal” pixels.

Parameters:
input_modelJwstDataModel or ndarray

This is used for getting the IRS2 parameters and the length of the X image axis.

nint or None

The number of “normal” (as opposed to reference) pixels read out before jumping to the reference pixel region.

rint or None

The number of reference pixels read out before jumping back to the normal pixel region.

Returns:
irs2_maskndarray

Boolean index mask (1-D) with length equal to the last axis of the data shape.