xscale.spectral.fft.amplitude

xscale.spectral.fft.amplitude(spectrum)

Return the amplitude spectrum from the Fourier Transform

Parameters:
spectrum : DataArray

A DataArray spectrum computed using xscale.spectral.fft.fft

deg : bool, optional

If True, return the phase spectrum in degrees. Default is to return the phase spectrum in radians

Returns:
res : DataArray

The phase spectrum