|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide bsubtract.pro
bsubtract |
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.
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