Description
This function sets the channel ranges for fitting polynomials in
baseline subtraction. It is used by the
bshape and
baseline
functions. It offers a direct (non-interactive) means of setting these ranges.
setregion provides an alternative, interactive way of setting these
ranges using the mouse cursor.
nregion accepts a variable number of
arguments. The arguments list the first and last channel of each segment of
the range to be used in the polynomial fit. The total number of arguments
should thus be a multiple of 2.
Arguments
| ... |
|
channel numbers to demark a range |
| |
|
Allowed: |
integers |
Example
- d.nfit(3);
- d.nregion(10,100,400,512) # use channels 10-100 and 400-512 for the fit
- d.bshape()
- d.nregion(10,100,120,130,400,512) # use channels 10-100, 120-130 and 400-512 for the fit
- d.bshape()