readout_stage¶
- sofia_redux.scan.integration.integration_numba_functions.readout_stage(frame_data, frame_valid, channel_indices, channel_hardware_gain)[source]¶
Unstage the detector by removing channel hardware gains to the frame data.
- 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 processing.- channel_indicesnumpy.ndarray (int)
The channel indices to which
channel_hardware_gain
values apply of shape (n_channels,). Should map n_channels -> all_channels.- channel_hardware_gainnumpy.ndarray (float)
The channel hardware gains of shape (n_channels,).
- Returns:
- None