Produced by IDL 6.1
User Documentation

./guide
gauss.pro

Last modification date:
Thu Jun 2 23:56:08 2005

gauss

procedure gauss[, fit][, fitrms], [index=long], [modelindex=long], [ok=variable], [/quiet]

Fits data in data container specified by index and fits multiple gaussians to regions in this data, according to the values set in !g.gauss

Examples
 ; get some continuum data
 cont
 filein,'peaks.fits'
 get,index=1
 ; setup the gauss fit
 gregion,[60,80]
 ngauss,[1]
 gmaxiter,500
 gparamvalues, 0, [400000.,70.,100.]
 ; find and show the fit
 gauss
 gshow
 
Uses
gauss_fits report_gauss

Parameters
fit
out, optional
variable
results of fit. identical to !g.gauss.fit
fitrms
out, optional
variable
errors of fit. identical to !g.gauss.fitrms

Keywords
index
in, optional
long (def. 0)
index of data container in !g whose data is to be fit.
modelindex
in, optional
long (def. -1)
index of data container in !g to hold the resulting model. If not set (the default) then no index is filled with the model.
ok
out, optional
variable
result; 1 - good, 0 - bad
quiet
in, optional
boolean (def. F)
When set, the report of the fits and initial guesses is not made.


Produced by IDLdoc 1.6 on Thu Jun 2 23:56:47 2005