flag_zeroed_channels

sofia_redux.scan.custom.hawc_plus.integration.hawc_integration_numba_functions.flag_zeroed_channels(frame_data, frame_valid, channel_indices, channel_flags, discard_flag)[source]

Flag channels with the DISCARD flag if all frame data are zero valued.

Parameters:
frame_datanumpy.ndarray (float)

The frame data of shape (n_frames, all_channels).

frame_validnumpy.ndarray (bool)

A boolean mask of shape (n_frames,) where False excludes a frame from checks.

channel_indicesnumpy.ndarray (int)

The channel indices for which to check zero-levels of shape (n_channels,). Should map n_channels -> all_channels.

channel_flagsnumpy.ndarray (int)

The channel flags of shape (n_channels,).

discard_flagint

The flag to apply to channel flags if all frames are zero valued.

Returns:
None