function gauss2dsimplefit

Fit a two-dimensional gaussian to a rectangular grid (i.e. an image).

Syntax
result = gauss2dsimplefit(image, x, y, width [, chisq])

Arguments
image:   The image to be fit
x:   The x-position of the fit center
y:   The x-position of the fit center
width:   The half-width of the fitting window
chisq:   If set to a named variable, the variable is overwritten with the chi-squared of the fit.


Returns
The returned vector contains the best-fit parameters in the form [Offset,Max,x0,y0,fwhm1,fwhm2,angle,d_Offset,d_Max,d_x0,d_y0,d_fwhm1,d_fwhm2,d_angle]

See also
function gauss2dfit
function multigauss2dfit