aspcore.fouriertransform.dft.rfft

aspcore.fouriertransform.dft.rfft(time_sig, n=None, num_freqs_removed_low=0)

Computes the real FFT

Parameters:
  • time_sig (ndarray) – The signal to be transformed. The last axis should correspond to time

  • n (int, optional) – length of the FFT. If None, the length is the length of the last axis of time_sig

  • num_freqs_removed_low (int, optional) – The number of frequencies to remove from the low end of the spectrum. Default option is 0, which corresponds to the full real DFT.

Returns:

freq_signal – The transformed signal

Return type:

ndarray

Notes

Corresponds to numpy.fft.rfft, but with the time convention used in this package.