rfft

function of dascore.transform.fft source

rfft(
    patch: Patch ,
    dim = time,
)-> ‘PatchType’

Perform a real fourier transform along the specified dimension.

Examples

import dascore as dc
patch = dc.get_example_patch()

# Transform along time dimension
ft_patch = patch.rfft(dim='time')
assert 'ft_time' in ft_patch.dims
Note
  • Use dft instead.
  • This function is not scaled as detailed in the dascore documentation.