function of dascore.transform.fourier source

    patch: Patch ,
    dim: str | None |[str, None,[str]] = None,
)-> ‘PatchType’

Perform the inverse discrete Fourier transform (idft) on specified dimension(s).

Currently, only patches that have been transformed with dft can be used with this function. After transformation with dft, the transformed coordinates cannot change (e.g., with select otherwise idft won’t work.


Parameter Description
patch Patch to transform.
dim A single, or multiple dimensions over which to perform idft. If
None, perform idft over all dimensions that have names starting
with “ft_”, which indicates they have already undergone a fourier
  • Real transforms are determined by transformed coordinates which have no negative values.

  • See the FFT note in Notes section of DASCore’s documentation.

See Also



import dascore as dc
patch = dc.get_example_patch()
# perform dft (fft) on time axis
dft_time = patch.dft(dim="time")
# get inverse dft, transformed axis are ascertained automatically
idft = dft_time.idft()