----- file created by makedoc on: Tue Feb 11 14:15:24 2003
----- Documentation for /scisoft/IDL/scisoft/xaid/src//ftrset.pro -----

 NAME:
	FTRSET

 PURPOSE:
	This procedure calculates the Fourier Transform of a Exafs spectrum

 CATEGORY:
	XAID xafs data analysis package. 

 CALLING SEQUENCE:

	FTRSET, setin, fourier

 INPUTS:
	setin:	fltarr(ncol,npoints) set of data

 OPTIONAL INPUTS:
	
 KEYWORD PARAMETERS:
	XRANGE=[xmin,xmax] : range of the abscisas for the transformation	
	RRANGE=[rmin,rmax] : range of the congugated variable for 
		the transformation	
	WINDOW = kind of window:
		0 Gaussian Window 
		1 Hanning Window
		2 No Window (default)
		3 Parzen (triangular)
		4 Welch
		5 Hamming
		6 Tukey
		7 Papul
		8 Kaiser
	KPOWER Power of K to weight the spectrum (default=0)
	LEEANDBENI Lee and Beni correction. If set to 1 use this
		correction with coefficients defined in LBCOEFF
	LBCOEFF A float*4 array with the 4 coefficients
	WINDPAR Parameter for windowing
		If WINDOW=(1,3,4,5) this sets the width of
		the appodization (default=0.2)
		If WINDOW=8 sets the t parameter 0<t<=10.
	PLOTWINDOW  when set to 1 then plot the window
	INQUIRE  when set to 1 ask about change parameters
	METHOD method used for calculating the Fourier Transform:
		0 Standard Fourier transform (default)
		1 Fast Fourier Transform
	PLOTFOURIER  when set to then plot the ftr:
		1 plot Modulus; 2 plot Imag; 3 Real; 4 Mod+Imag

	Any other keyword is passed to the calculating procedures FTR 
	or FASTFTR

 OUTPUTS:
	"This function returns a 4-columns array (fourier) with
	the congugare variable (R) in column 0, the modulus of the
	FT in col 1, the real part in col 2 and the imaginary part in
	col 3.

 OPTIONAL OUTPUTS:

 COMMON BLOCKS:

 SIDE EFFECTS:
	None

 RESTRICTIONS:
	None

 PROCEDURE:
	This procedure calls other IDL procedures such as FTR or FASTFTR
	for calculating the F.T. and WINDOW_FTR to generate the window

 EXAMPLE:
		FTRSET,setin,fourier,/inq

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio. ESRF
	March, 1993	
	98-10-02 srio@esrf.fr fix doc: kpower default is zero. 
	  Added _EXTRA keyword to be passed to either ftr or fastftr.

