spectrochempy.fftο
- fft(dataset, size=None, sizeff=None, inv=False, **kwargs)[source]ο
Apply a complex fast fourier transform.
For multidimensional NDDataset, the apodization is by default performed on the last dimension.
The data in the last dimension MUST be in time-domain (or without dimension) or an error is raised.
To make reverse Fourier transform, i.e., from frequency to time domain, use the
iffttransform (or equivalently, theinv=Trueparameters.- Parameters:
dataset (
NDDataset) β The dataset on which to apply the fft transformation.size (int, optional) β Size of the transformed dataset dimension - a shorter parameter is
si. By default, the size is the data size.sizeff (int, optional) β The number of effective data point to take into account for the transformation. By default it is equal to the data size, but may be smaller.
inv (bool, optional, default=False) β If True, an inverse Fourier transform is performed - size parameter is not taken into account.
**kwargs β Optional keyword parameters (see Other Parameters).
- Returns:
out β Transformed
NDDataset.- Other Parameters:
dim (str or int, optional, default=βxβ.) β Specify on which dimension to apply this method. If
dimis specified as an integer it is equivalent to the usualaxisnumpy parameter.inplace (bool, optional, default=False.) β True if we make the transform inplace. If False, the function return a new object
tdeff (int, optional) β Alias of sizeff. If both sizeff and tdeff are passed, sizeff has the priority.
See also
ifftInverse Fourier transform.