dft_filter_frames

sofia_redux.scan.filters.filters_numba_functions.dft_filter_frames(data, rejection, n_frames)[source]

Use DFT to filter single channel data.

Parameters:
datanumpy.ndarray (float)

The data to filter of shape (n,) where n = pow2ceil(n_frames). The data are updated in-place.

rejectionnumpy.ndarray (float)

The rejection filter of shape (nf + 1,) where nf = n // 2.

n_framesint

The number of frames in the integration (n_frames).

Returns:
rejected_signalnumpy.ndarray (float)

The rejected signal of shape (n_frames,)