% @(#)fft_powe.hlq	19.1 (ESO-IPG) 02/25/03 14:03:20 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      fft_powe.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, FFT/POWER
%.PURPOSE    On-line help file for the command: FFT/POWER
%.VERSION    1.0  03-APR-1990 : Creation, KB
%.VERSION    1.1  26-OCT-1992 : Upgrade, KB
%----------------------------------------------------------------
\se
SECTION./POWE
\es\co
FFT/POWER						26-OCT-1992  KB
\oc\su
FFT/POWER inr ini outr outi pow_spec
	make discrete Fourier transform and power spectrum
\us\pu
Purpose:      
           Compute the discrete Fourier transform of real or complex frame
           and also its power spectrum (square root).
\up\sub
Subject:      
           Transformation, filter.
\bus\sy
Syntax:       
           FFT/POWER inr ini outr outi pow_spec
\ys\pa
           inr = frame containing the real part of input frame
\ap\pa
           ini = frame containing the imaginary part of input frame;
\\
                if input frame is real, omit parameter `ini' or set it to `?'
                if you enter values for any of the following parameters.
\ap\pa
           outr = frame for real part of result transform,
                defaulted to `fftr.bdf'
\ap\pa
           outi = frame for imaginary part of result transform,
                defaulted to `ffti.bdf'
\ap\pa
           pow_spec = frame for power spectrum, defaulted to `power.bdf'
\ap\sa
See also:
           FFT/INVERSE, FFT/IMAGE, FFT/FPOWER, CREATE/FILTER
\as\no
Note:         
           All internal calculations are done in double precision and
           only the final result frames are truncated to single precision.
\\
           If the number of pixels in an axis of the input frame is not a power
           of 2, the input frame is expanded to the next higher power of 2.
           The result frames will have the original no. of pixels but the
           result frames with expanded size are also kept with names
           `exp_fftr.bdf', `exp_ffti.bdf' and `exp_pow.bdf'. These frames
           should be used later when calculating the inverse Fourier transform
           via FFT/INVERSE!
\on\exs
Examples:
\ex
           FFT/POWER rr ri
            Do FFT for image where real part is contained in frame `rr.bdf'
            and imaginary part in frame `ri.bdf'. The real and imaginary parts
            of the FFT are stored in `fftr.bdf' and `ffti.bdf'; the power
            spectrum will be in frame `power.bdf'.
\xe\ex
           FFT/POWER lola ? zr zi zp
            Do FFT for real frame `lola.bdf' (no imaginary part) and store
            results in `zr.bdf', `zi.bdf' and `zp.bdf'.
\xe\sxe
\rs
Restrictions:\\
           Does not work for 3-dim frames.
\sr
