----- file created by makedoc on: Tue Feb 11 14:15:25 2003

----- Documentation for /scisoft/IDL/scisoft/xaid/src//xaid_calib.pro -----
 =================================  xaid_calib ===============================

   The documentation for XAID (the XOP's XAFS toolbox) can be found at:
   http://www.esrf.fr/computing/scientific/xop/xaid/doc/

		
   xaid_calib is a widget based graphical interface to perform the
   XAFS calibration. It allows to load two spectra (reference spectrum
   and spectrum to calibrate) and allows to interactively shift the
   one to be calibrated over the reference one. The calibration is
   done with the formula:
   t[i] = Xuncalibrated[i]-Xuncalibrated[0]
   Xcalibrated[i] = a + b*( t[i] ) + c*(t[i])^2
	
   (The substraction of Xuncalibrated[0] is essential for TurboXAS).
		

 ----------------------------------------------------------------------

	NAME:
		XAID_CALIB
	PURPOSE:
		 Calibrate Dispersive EXAFS data.
 	CATEGORY:
		Widgets. XAFS data analysis.
	CALLING SEQUENCE:
		XAID_CALIB 
	KEYWORD PARAMETERS:
		GROUP = The widget ID of the widget that calls Xplot.
		When this ID is specified, a death of the caller results 
		in a death of XAID_Mu2Chi.
		DELIAID = a structure with the widget id's from DELIA
		  application. To be used when XAID_CALIB is called from DELIA.
		XPLOTID = the id of an existing xplot window where XAID_CALIB
		  will send the plots. If undefined, XAID_CALIB creates a new
		  xplot window.
	OUTPUTS:
		Opens XPLOT windows and allows changing interactively the 
		calibration coefficients a,b and c. The results are 
		automatically copied to the DELIA application when DeliaId 
		keyword is used.
	SIDE EFFECTS:
		If not active, starts Xmanager
	RESTRICTIONS:
		Unknown.
	PROCEDURE:
		Uses Xplot
	MODIFICATION HISTORY:
		Written by  Manuel Sanchez del Rio. ESRF. 2 October 1998


