idft

function of dascore.transform.fourier source

idft(
    self ,
    dim: str | collections.abc.Sequence[str, collections.abc.Sequence[str], None] = None,
)-> ‘Self’

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

Currently, only patches transformed with dft can be inverted. After dft, the transformed coordinates must not change (e.g., with select), otherwise idft won’t work.

Parameters

Parameter Description
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
transform.
Note
  • Real transforms are determined by transformed coordinates which have no negative values.

  • A complex64 spectrum inverts in single precision; others in double.

  • Non-dimensional coordinates measured on a transformed dimension are restored with it, provided the patch still carries what dft parked for them. One spanning more than one dimension is not parked, so it does not come back.

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

See Also

Examples

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()