fourierror.freq#

The frequency axis of a discrete Fourier transform.

fourierror.freq.frequencies(data, coord)#

Generate the DFT frequencies.

Parameters:
  • data (DataArray) – A scipp DataArray for which frequencies should be found.

  • coord (str) – The coordinate over which the frequencies should be found.

Return type:

Variable

Returns:

Angular DFT frequencies, 2 * pi * fftfreq(n, d), as a scipp Variable with dimension omega and the reciprocal unit of coord.

Raises:

TypeError – If the coordinate is not evenly spaced.