|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide baseline.pro
baseline |
procedure baseline, [nfit=integer], [modelindex=integer], [ok=variable] |
Fit and subtract a polynomial baseline from the contents of data container [0] (continuum or line, depending on the GUIDE mode at the time).
See the notes for bshape for more details since this procedure uses that one for much of its work.
Use bshape if you want to fit the baseline but do not want it subtracted from the data.
Use bsubtract to subtract a baseline using the baseline coeficients stored in the !g structure (e.g. from a use of bshape).
Use bmodel to generate a baseline model and store it in the DC specified in modelindex.
Use bshow to over plot a baseline model.
Use subtract to subtract one data container (which might contain a basline model) from another data container.
get,index=20 nregion,[100,500,700,1000,1600,2000] !g.nfit=2 baseline,modelindex=10The step involving !g.nfit can be omitted with the same result.
baseline,nfit=2,modelindex=10Same fit, but don't put the model into any of the data containers.
baseline,nfit=2