decode_mask
- jwst.refpix.irs2_subtract_reference.decode_mask(mask)[source]
Interpret the MASK column of the DQ table.
As per the ESA CDP3 document: “There is also a DQ extension that holds a binary table with three columns (OUTPUT, ODD_EVEN, and MASK) and eight rows. In the current IRS2 implementation, one jumps 32 times to odd and 32 times to even reference pixels, which are then read twice consecutively. Therefore, the masks are 32 bit unsigned integers that encode bad interleaved reference pixels/columns from left to right (increasing column index) in the native detector frame. When a bit is set, the corresponding reference data should not be used for the correction.”
- Parameters:
- maskuint32
A mask value.
- Returns:
- bitslist
A list of the indices of bits set in the
maskvalue.