is_unflagged

sofia_redux.scan.flags.flag_numba_functions.is_unflagged(flag_array, flag=None, exact=False)[source]

Return whether a flag array is unflagged by the given flag.

Parameters:
flag_arraynumpy.ndarray (int)

An array of integer flags.

flagint, optional

The flag to check. If not supplied, returns True if flagged_array is zero.

exactbool, optional

If True, an unflagged result is one that does not exactly match the flag. Otherwise, an unflagged result is one which does not contain the flag.

Returns:
unflaggednumpy.ndarray (bool)

A mask the same shape as flag_array where True indicates an element is unflagged.