Eval15 lambda
A simulation (simulate>0) will
need values of the wavelength. There are various constants to control
the wavelength spectrum.
The spectrum
The spectrum consists of one or more wavelength records. Each
wavelength record contains
- Lambda
The wavelength
- Sigma
A measure of the distribution width of the wavelength.
The interpretation depends on the value of
lambdatype
(gauss, lor or block).
- Weight
A relative weight of the wavelength. The weight is the
integral of the distribution of the
wavelength. If you double for example the sigma the
relative peakheight will be halved.
- Low
The lowest value of the wavelength during simulation. A negative
value corresponds to no lower limit.
- High
The highest value of the wavelength during simulation. A negative
Low corresponds to no upper limit.
- Type
Sets the distrution type of the wavelength.
One of gauss, lor or block.
Mean and mid
eval15 uses the value of weighted
mean (λmean) and
unweighted mean (λmid) for various purposes.
- λmean
Used for the determination of the resolution of a reflection.
- λmid
Used the calculate the central impact of a reflection. The central
impact uses λmid, a pointfocus, a zero-sized crystal and
a mosaicity of zero.
If you set the spectrum with the target,
λmean and λmid are calculated
using α1 and α2. You can set the
values of λmean and λmid with
lambdameanmid or calculate
them with lambdacalcmean.
How to define the spectrum
- lambdainit
Clears the wavelength spectrum
- detectortype
Every detectortype has a default target.
- target
Sets alpha1 and alpha2 according to the target material
using:
- lambdaadd
Add a new wavelength with corresponding sigma and weight
to the spectrum.
- lambdaaddfull
Add a new wavelength with corresponding sigma, weight, minimum, maximum and type
to the spectrum.
- Using boxfiles: the wavelength will be set to the value found in the
boxfile. But if you have used one the the following commands, the
wavelength information from the boxfile will be ignored:
lambdaadd,
lambdacalcmean,
lambdavalue.
How to change the spectrum
- lambdaadd
Adds a new wavelength record.
- lambdaaddfull
Adds a new wavelength record.
- lambdavalueX
Allows you to change the lambda field in a wavelength record
- lambdasigmaX
Allows you to change the sigma field in a wavelength record
- lambdaweightX
Allows you to change the weight field in a wavelength record
- lambdalowX
Allows you to change the lower limit in a wavelength record
- lambdahighX
Allows you to change the upper limit in a wavelength record
- lambdatypeX
Allows you to change the type field in a wavelength record
- lambdavalueall
Set the lambda fields for all wavelength records
- lambdasigmaall
Sets the sigma fields in all wavelength records
- lambdatypeall
Sets the type fields in all wavelength records
- lambdaweightall
Sets the weight fields in all wavelength records
- lambdalowall
Sets the lower limits in all wavelength record
- lambdahighall
Sets the upper limits in all wavelength record
- lambdameanmid
Sets the weighted and unweighted average wavelengths.
- lambdacalcmean
Calculate the weighted and unweighted average wavelengths.
- onescan
lambdaX
calculate fom for varying wavelength
- onescan
lamsigX
calculate fom for varying wavelength sigma
- onescan
lamwghtX
calculate fom for varying wavelength weight
How to examine the spectrum
- Use the distribution plot command.
- Set distribution type
lambda
- The Distribution Window will be created. The window dimensions
are calculated from the screen dimensions and the value
of distribution fraction
(width=distribution fraction*screenwidth,
height=0.5*distribution fraction*screenheight).
But you may specify your own window dimensions with the command
distribution size.
- The spectrum will be plotted between fmin and
fmax..
fmin is the value of
λmin
minus 5 times the corresponding sigma.
fmax is the value of
λmax
plus 5 times the corresponding sigma.
(if the sigma's are small or even zero,
fmin will be set to
λmin - 0.1 *
(λmax-λmin)
and
fmax to
λmax + 0.1 *
(λmax - λmin).
But you may define your own boundary limits by setting
distribution autolimit off
and specifying
distribution limit
- The wavelength select routine will generate wavelengths from
the spectrum. These wavelengths are converted to integers, and
a histogram of these integers is build. the changed bin in
the histogram will be plotted so the progress
of this process can be followed.
- This process continues until the highest bin in the spectrum
reaches distribution peak.
- lambdaprint
- show lambda
Eval15
Eval15 commands