set_flags

sofia_redux.scan.flags.flag_numba_functions.set_flags(flag_array, flag, indices=None)[source]

Add a flag indicator to an array of flags.

Parameters:
flag_arraynumpy.ndarray (int)

An array of flag values to be updated in-place of shape (n,).

flagint

The integer flag to set.

indicesnumpy.ndarray (int) or int, optional

An array indicating which flag_array indices to flag with flag. The default is all indices.

Returns:
None