level_1d¶
- sofia_redux.scan.filters.filters_numba_functions.level_1d(data, n_frames)[source]¶
Remove the average from a given 1-D data array.
If the average is found to be NaN, all values in the array are set to zero.
- Parameters:
- datanumpy.ndarray
The data array to level of shape (>=n_frames,).
- n_framesint
The last non-inclusive index of the data that should have the average level removed. Note that the average level is still calculated over the entire
data
provided.
- Returns:
- None