Produced by IDL 6.1
Developer Documentation

./guide
fitgauss.pro

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

Routine Summary  5 routines

procedure fitgauss[, fit][, fitrms], [modelindex=long]

Interactive procedure that allows user to use the plotter and mouse buttons to specify regions and gaussians for fitting.

procedure find_region, nregions, regions, x, region

private

procedure overlap_check, nregions, regions, checkpoint, status

private

procedure get_closest_index, x, y, result

private

procedure get_full_width_half_max, cx, cy, y, fwhm

private

Routine Details

fitgauss

procedure fitgauss[, fit][, fitrms], [modelindex=long]

Interactive procedure that allows user to use the plotter and mouse buttons to specify regions and gaussians for fitting. Left Mouse Button: to mark regions (left then right) Center Mouse Button: to mark gaussians (center then width) Right Mouse Button: to calculate and show fits

Examples
   fitgauss,modelindex=10    ; fit gaussian and store model in DC 10
   show
   subtract,0,10,11          ; store residual in DC 11
   oshow, 11                 ; overlay residual
   oshow, 10, color=!yellow  ; overlay gaussian model
 

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
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.

find_region private

procedure find_region, nregions, regions, x, region

Parameters
nregions
.
regions
.
x
.
region
.

overlap_check private

procedure overlap_check, nregions, regions, checkpoint, status

Parameters
nregions
.
regions
.
checkpoint
.
status
.

get_closest_index private

procedure get_closest_index, x, y, result

Parameters
x
.
y
.
result
.

get_full_width_half_max private

procedure get_full_width_half_max, cx, cy, y, fwhm

Parameters
cx
.
cy
.
y
.
fwhm
.


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