|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide baseline.pro
baseline |
procedure baseline, [nfit=integer], [modelbuffer=integer], [ok=variable] |
Fit and subtract a polynomial baseline. The procedure works on the contents of buffer 0 (the primary data container). Both continuum and line data are supported.
See the notes for bshape for more details since this procedure uses bshape for much of its work.
Use bshape if you want to fit the baseline and (usually) show the fit on the plotter without actually subtracting the fit from the data.
Use bsubtract to subtract a baseline using the baseline coefficients stored previously in the !g structure. Coefficients are stored in !g, for example, by running bshape.
Use bmodel to generate a baseline model from the coefficients and store it in the buffer specified in modelbuffer.
Use bshow to overplot a baseline model.
Use subtract to subtract the data of one buffer (which might contain a baseline model) from another.
getrec,20 nregion,[100,500,700,1000,1600,2000] nfit,2 baseline,modelbuffer=10; The step involving nfit can be omitted as follows:
baseline,nfit=2,modelbuffer=10; Examine a fit first, then subtract it.
getnod, 10 ; first get some data setregion ; set the baseline region with the cursor nfit, 5 bshape baseline