combine_dq

jwst.flatfield.flat_field.combine_dq(f_flat_dq, s_flat_dq, d_flat_dq, default_shape)[source]

Combine non-None DQ arrays via bitwise or.

Parameters:
f_flat_dqndarray or None

The DQ array for the fore optics component.

s_flat_dqndarray or None

The DQ array for the spectrograph component.

d_flat_dqndarray or None

The DQ array for the detector component.

default_shapetuple

If all three of the DQ arrays (see above) are None, use this shape to create a DQ array filled with zero.

Returns:
flat_dqndarray of uint32

The 2D DQ array resulting from combining the input DQ arrays via bitwise OR.