remove_rejection_from_frames¶
- sofia_redux.scan.filters.filters_numba_functions.remove_rejection_from_frames(frame_data, frame_valid, channel_indices, rejected_signal)[source]¶
Remove the rejected signal from frame data.
This is a simple operation that subtract the rejected signal from the frame data for all valid frames.
- Parameters:
- frame_datanumpy.ndarray (float)
The frame data to update in-place of shape (n_frames, all_channels).
- frame_validnumpy.ndarray (bool)
A boolean mask, where
False
indicates that the frame is invalid and should be ignored during processing.- channel_indicesnumpy.ndarray (int)
The channel indices mapping
rejected_signal
channels ontoframe_data
channels of shape (n_channels,).- rejected_signalnumpy.ndarray (float)
The signal to remove of shape (n_channels, n_frames).
- Returns:
- None