|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide fitgauss.pro
fitgauss |
procedure fitgauss[, fit][, fitrms], [modelbuffer=long], [highlightcolor=color] |
An interactive procedure that allows the user to fit gaussians. The user should first subtract a baseline from the data prior to using this procedure. Next, use the plotter zoom feature to narrow in on the region of interest. Then run fitgauss. Click the left mouse button to mark the regions to be considered in the fit. Then click the middle mouse button, twice for each gaussian to be fit, first at the (guessed) peak of the line, and then at the half-power point. Repeat the middle mouse clicks as many times as you like to fit multiple components. Finally click the right mouse button to actually do the fit and display the results.
Each guassian (middle mouse clicks) must be found in an already set region (left mouse button). Use the right mouse button to exit at any time (will require 2 right clicks to quit the procedure in the middle of a step - marking a region or identifying a gaussian).
fitgauss,modelbuffer=10 ; fit gaussian and store model in buffer 10 show subtract,0,10,11 ; store residual in buffer 11 oshow, 11 ; overlay residual oshow, 10, color=!yellow ; overlay gaussian model