get_valid_downsampling_frames

sofia_redux.scan.integration.integration_numba_functions.get_valid_downsampling_frames(valid_frames, start_indices, window_size)[source]

Return the valid downsampled frames that may be calculated.

Parameters:
valid_framesnumpy.ndarray (bool)

The higher resolution valid frames where True marks a frame that may be included in the downsampling. Should be of shape (n_frames,).

start_indicesnumpy.ndarray (int)

The first frame of the higher resolution frame data to be included in the downsampled values. i.e., the i(th) downsampled frame will use frames[start_indices[i] : start_indices[i] + window_size]. Should be of shape (n_downsampled,).

window_sizeint

The size of the downsampling window function (convolution kernel).

Returns:
valid_downsamplednumpy.ndarray (bool)

A boolean array where True indicates that a downsampled value may be calculated for a given downsampled index.