SAMPLE <nblocks>
where <nblocks> is the number of blocks after which the gain coefficients are recalculated. Up to four times the sample number of blocks may be used to obtain the initial gain coefficients. A default value of 50000 blocks is assumed if none is specified.
PEAKAREA <minimum-acceptable-peak-area>
where <minimum-acceptable-peak-area> is the minimum integration area under a peak required for the gain spectrum to be used to evaluate gain coefficients. An estimate is made of the background under the peak in order to calculate the peak area. A default value of 50 is assumed.
DEVIATION <maximum-acceptable-centroid-shift>
where <maximum-acceptable-centroid-shift> is the maximum centroid shift of a peak in a gain spectrum to avoid calculation of new gain coefficients. A default value of 1.0 is assumed.
INIT <gain-array> FROM <1D-spectrum> CENTROIDS <centroid1> <width1> <centroid2> <width2>
[PEAKS
[<group-number> <centroid1> <width1> <centroid2> <width2>]r
]
where <gain-array> is the name of a gain array already declared in the *DATA section, <1D-spectrum> is the name of an array of 1D 32-bit precision spectra declared in the *SPECTRA section and the centroids and widths are floating point numbers denoting the gain matched positions and widths of two control peaks to gain match to. The INIT line is optionally followed by a PEAKS statement in which estimates of the actual peak parameters are specified for each group number.
VOVERC <real number>
COPYGAIN FROM <gain-array> [<group-range>] TO <gain-array> [<group-range>] ANGLES <value-array> DELTAS <value-array>
Eg.
*DATA GAINARRAY GAINS1 *SPECTRA GSPEC[2:5] 4096 32 *AUTOGAIN SAMPLE 10000 PEAKAREA 40 DEVIATION 0.80 INIT GAINS1 FROM GSPEC CENTROIDS 550 5.0 1204 7.3 PEAKS 2 545 5.0 1200 7.2 3 546 5.0 1202 7.2 5 551 5.0 1207 7.3 ...