Produced by IDL 7.1.1
User Documentation

./guide
bsubtract.pro

Last modification date:
Wed Sep 28 13:27:08 2016

bsubtract

procedure bsubtract, [nfit=integer], [ok=variable]

Subtract a baseline using the stored coefficients in !g.polyfit and !g.nfit from the data in the primary data container.

Note that bsubtract does not itself do any fitting. This only subtracts the result of the most recent fit. Since the fitted polynomials are orthogonal, using up to !g.nfit of them is itself a valid fit at the lower order.

Examples
 nfit=7
 bshape                        ; generate a 7th order fit
 copy,0,10                     ; keep for later use
 ; subtract the baseline
 bsubtract
 ; or, subtract a lower order fit
 copy,10,0
 bsubtract, nfit=2
 
Uses
getbasemodel
Version
$Id$

Keywords
nfit
in, optional
integer
Only use at most nfit parameters. If !g.nfit is less then nfit, then only !g.nfit parameters will be used and a warning will be issued.
ok
out, optional
variable
1 on success, 0 on failure.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:33 2016