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

 NAME:
	WINDOW_FTR

 PURPOSE:
	This procedure calculates and applies a weighting window to a set

 CATEGORY:
	XAID xafs data analysis package. 

 CALLING SEQUENCE:

	WINDOW_FTR, setin, windout

 INPUTS:
	setin:	fltarr(ncol,npoints) set of data
	windout:	fltarr(ncol,npoints) set with the calculated window

 OPTIONAL INPUTS:
	setweighted:	the input set multiplied by the window
	
 KEYWORD PARAMETERS:
	NAMES = Return in this named variable the list of avilable 
		windows (only that). Example: 
		IDL> names = 1
		IDL> window_ftr,names=names
	WINDOW = 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
		If WINDOW=(2,4,5,6) this sets the width of
		the appodization (default=0.2)
		If WINDOW=9 sets the t parameter 0<t<=10.
	WRANGE = [xmin,xmax] the limits of the window. If wrange
		is not set, the take the minimum and maximum values
		of the abscisas. The window has value zero outside
		this interval.

 OUTPUTS:
	a set with the window and (optionally) the weighted set

 OPTIONAL OUTPUTS:

 COMMON BLOCKS:

 SIDE EFFECTS:
	None

 RESTRICTIONS:
	None

 PROCEDURE:
	Straightforward

 EXAMPLE:
		WINDOW_FTR,setin,wind,window=5

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio. ESRF
	March, 1993	
	96-08-14 MSR (srio@esrf.fr) adds names keyword.

