This is a description of the input parameters for xcrystal

DABAX  file with scat. lengths: 
	Select a DABAX file from where the neutron scattering lengths
	are read. They are needed for building the structure factor. 

POLARIZATION:   The polarization of the neutron beam.
        WARNING: The calculation of polarized beams require that the
                database used contain polarized scattering lengths.
                In the case that polarized scattering lengths are not
                available, the unpolarized values are used WITHOUT
                WARNING. Therefore, for being sure that calculations
                are for polarized beams, used a dataset (like
                Neutron_SLSC_DataBooklet.dat) and compare the result with
                the unpolarized case.
CRYSTAL: Select a crystal from this list of crystals.

h MILLER INDEX: obvious
k MILLER INDEX: obvious
l MILLER INDEX: obvious

TDS cross-section:  A value of the Thermal Diffuse Scattering cross
	section [used only in Mosaic crystal calculations]

TEMPERATURE FACTOR: Three possibilites:
       1) Enter the exp(-M) value (a positive value between 0 and 1)
       2) Enter the absolute temperatute in Kelvin, WITH A MINUS SIGN.
	  The minus sign tells to the code that the number entered
	  refers to a temperature and not to the full debye-waller exp(-M)
	  factor. The minus sign will not be considered for the numerial
	  calculations. 
	  In this case, the Debye-Waller factor is calculated 
	  as a function of the temperature, using a well-known approximation 
	  as a function of sin(theta/lambda)=1/(2d), temperature, atomic 
	  mass and Debye-temperature. In the case of crystal structures 
	  with more that one atomic sites, an independent Debye-Waller 
	  factor is calculated for each atomic site and then putting them 
	  together by averaging the M's. Values for atomic mass and 
	  Debye temperatures are obtained from the DABAX file
	  AtomicConstants.dat. For more info, see the documentation in the
	  function DebyeWaller.pro
       3) Enter a question mark (?). 
	  In this case, the code will perform the calculation as in 
	  point 2), but it will pop-up a window that will permit to modify 
	  the Debye-Waller ingredients (i.e., the sin(theta/lambda)=1/(2d) 
	  ratio, temperatute, atomic mass and Debye temperature). 
	  In the case of crystal structures with several atomic types, 
	  several values of atomic mass and Debye temperature should be entered.
	  The default values are taken from the DABAX file AtomicConstants.dat. 
	  The interest of this option is to allow the user to "improve"
	  the default value of the temperature factor, which is 
	  mostly "structure" dependent rather than dependent on the atomic 
	  types. For example, in the case of AlphaQuartz (SiO2), The Debye 
	  temperature of the oxygen is not defined by default in the 
	  AtomicConstants.dat DABAX file because oxigen does not exist in
	  crystalline state. Therefore the averaged value seems not realistic.
	  This option allows to customize the Debye temperatures from 
	  default (note that values of Debye temperature found in bibliography 
	  change significatively from one reference to another) and also allows
	  to enter average values of atomic mass and Debye temperature by 
	  entering identical values foe all atomic sites. 
	  Note that if values are changed in this window, they are not
	  saved for further runs, nor saved to input files like
	  xcrystal.xop. 

LINEAR CELL EXPANSION: a coefficient (default=1.0) to multiply the 
	unit cell constants a,b,c to simulate thermal cell expansion.

MOSAIC CRYSTAL: Select YES when you want "mosaic crystal", otherwise 
	"perfect crystal" is set.

GEOMETRY: select one of the four cases combining Laue and Bragg cases 
	for either diffracted or transmitted beam. Note that the 
	transmitted intensity is not implemented for mosaic crystals.

SCAN: The scanned variable for the plot. Angular and Energy scans are
	allowed. The angular variable can be: Theta, when absolute angle
	is wanted; Th-ThBragg(corrected) or angular scan with zero at
	the bragg angle corrected for refraction; Th-ThBragg or angular
	scan with zero at the bragg angle; and y is dimensionless angular
	variable defined by (for instance) in the Zachariasen book.
	In the case of angular scans the unit can be set, except in the
	case of y. Energy is always in eV.

SCAN TYPE: select either angular scans (for constant wavelength)
	   or wavelength scan (for constant angle). Several options
	   are available: 
	Theta (absolote): angular scan in absolute grazing angle
		(must be defined an interval around the Bragg angle).
	Theta minus theta_Bragg(corrected): angular scan with
		diffraction profile centered at zero (i.e., at the 
		Bragg angle corrected for refraction).
	Theta minus Theta_Bragg: angular scan with
		diffraction profile origin at Bragg angle 
	Energy/wavelength: wavelength scan for a fixed angle.
	Y (Zachariasen): Angular scan as a function of the reduced
	angular variable Y of zachariasen (here, the diffraction profile has
	width equal to 2)
		
Energy/Wavelength unit: Select neutron wavelength, neutron energy or
	neutron speed. 

SCAN UNITS: angular units, if angular scan is set.

ANGULAR UNITS: select the angular units

FIX VALUE ( energy/wavelenth OR Theta): Place here either the energy value 
	of the monochromatic incident neutron beam (when angular scan is
	selected) or the grazing angle when a energy scan is wanted.
	In the case of energy scan, the program can calculate
	automatically the theta angle if one inputs the energy. If this 
	option is selected, enter the Energy with a minus sign in this box.

MIN SCAN VALUE: min value for the scanning variable.

MAX SCAN VALUE: max value for the scanning variable.

SCAN POINTS: the number of scanning points.

ASYMMETRY ANGLE [deg]: the angle between the Bragg planes and the crystal 
	surface. It is 0.0 for the symmetrical Bragg case and 90.0 for 
	the symmetrical Laue case.
	Note that Bragg geometry IS NOT POSSIBLE for Theta_Bragg < asym.  angle
	and       Laue geometry IS NOT POSSIBLE for Theta_Bragg > asym.  angle
	(this check is not performed, so you may expect absurd results if an 
	unphysical configuration is chosen.)

CRYSTAL THICKNESS [cm]: the crystal thickness in cm

MOSAICITY [deg fwhm]: The mosaicity of the mosaic crystal (if selected).



