|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide gfft.pro
gfft |
procedure gfft[, real_index][, imag_index], [/inverse], [bdrop=integer], [edrop=integer] |
Do an FFT or an inverse FFT on the data container(s) indicated by the arguments. This always overwrites the data array in those data containers with the result.
In the case of the forward FFT (the default), if an index for the imaginary part is omitted, it is assumed that the input array is a pure real array (the imaginary part is all 0) and any data at the imag_index location is ignored on input (and overwritten on output).
The units of the x-axis and the data are not changed here. The user needs to keep track of the state of their data containers. If a non-zero bdrop or edrop are used, the resulting data containers will be shortened by that many elements using dcextract. Consequently, it may not be appropriate to use the same bdrop and edrop on an inverse FFT as it was when the FFT was first done.
See the discussion in dcfft on how inverse is used for spectral-line data vs continuum data. For spectral-line data, an FFT is a transformation from frequency to time and an inverse FFT is a transformation in the other direction. For continuum data, an FFT is a transformation from time to frequency and an inverse FFT is a transformation in the other direction.