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

 NAME:
	BFTRSET

 PURPOSE:
	This procedure is a driver to calculate the Inverse Fourier Transform 
	of a Fourier Transform of an Exafs spectrum

 CATEGORY:
	XAID xafs data analysis package. 

 CALLING SEQUENCE:

	BFTRSET, fourier, backftr

 INPUTS:
	fourier:	set of data with the Fourier Transform
		as written by FTRSET
	backftr:	set of data with the output 4-column set:
		k (column 0), real part pf the bftr (column 1), modulus
		of the BFTR (column 2) and phase (column 3)

 OPTIONAL INPUTS:
	
 KEYWORD PARAMETERS:
	RRANGE=[rmin,rmax] : range of the abscissas variable for 
		the transformation	
	KRANGE=[kmin,kmax] : range of the conjugated variable (k) for
		the anti-transformation
	WINDOW = if selected, the result is divided by the weighted
		window used in the transformation. Kind of window:
		1 Gaussian Window (default)
		2 Hanning Window
		3 No Window
		4 Parzen (triangular)
		5 Welch
		6 Hamming
		7 Tukey
		8 Papul
		9 Kaiser
	WINDPAR Parameter for windowing (default=0.2)
		If WINDOW=(2,4,5,6) this sets the width of
		the appodization 
		If WINDOW=9 sets the t parameter 0<t<=10.
	WRANGE = [min,max] values (in k) used for the windowing 
		during the FTR transform
	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
	PLOTBFTR  when set then plot the bftr (1=plot real,
		2=modulus,3=phase)
	RSHELL = rshell: R  value for correcting the phase  
		newphase = phase - 2 k R  (default R=0.0)
	MOUSECUT when set to 1, then cut the fourier set using the mouse

 OUTPUTS:
	This function returns a 4-columns array (back-fourier) with
	the conjugated variable (k) in column 0, the real part of the
	BFTR in col 1, the modulus in col 2 and the phase in
	col 3.

 OPTIONAL OUTPUTS:

 COMMON BLOCKS:

 SIDE EFFECTS:
	None

 RESTRICTIONS:
	None

 PROCEDURE:
	Calls BFTR osr FASTBFTR and divide the output by the selected window

 EXAMPLE:
		BFTRSET,fourier,backftr,/inq

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio. ESRF
	March, 1993	

