|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./guide File bshape.pro
bshape |
procedure bshape, [nfit=integer], [/noshow], [/nofit], [index=integer], [modelindex=integer], [status=integer] |
Fit a baseline to !g.s[0] and overplot that fit on top of the current plot.
This fits a set of orthogonal polynomials with a maximum order given by the !g.nfit value to the data values in the [index] data container. The range of channels to use is given by !g.regions and !g.nregion. The parameters of the fit are placed in to !g.polyfit and the polynomial is evaluated over all channels and that result is placed into the container at modelindex (see the comments for that keyword for more details), which is otherwise a copy of the data at index.
Much of this behavior can be changed by use of the keywords. Read the descriptions for each keyword to see what options are available.
; fit, using the value of !g.nfit !g.nfit=3 bshape ; You've done several bshapes and want to see just the most recent show bshape,/nofit