unset_dq_bits

grizli.utils.unset_dq_bits(value, okbits=608, verbose=False)[source]

Unset bit flags from a DQ array

For WFC3/IR, the following DQ bits can usually be unset:

32, 64: these pixels usually seem OK
512: blobs not relevant for grism exposures
Parameters:
value : int, ndarray

Input DQ value

okbits : int

Bits to unset

verbose : bool

Print some information

Returns:
new_value : int, ndarray