function gauss

Creates an elliptical Gaussian. This is defined by respective FWHM1 and FWHM2, axis position angle (in degrees) and Gaussian center position (x, y) in the array. Optional keywords are naxis1, naxis2 which determine the size of the array. If not set, the size of the array is determined from global variables. If only one argument is given, return the value of a gauss as determined from exp(-4ln(2)*x^2).

Syntax
result = gauss(X0)
result = gauss(X, Y, FWHM1 [, FWHM2 [, ANGLE]] [, naxis1=value] [, naxis2 = value])

Arguments
X0:   A 1D vector or single number where to evaluate the function exp(-4ln(2)*X^2)
X:   The center of the gaussian in the x-axes
Y:   The center of the gaussian in the y-axes
FWHM1:   Full-width at half maximum of the major axes
FWHM2:   Optional, full-width at half maximum of the minor axes
ANGLE:   Optional, position angle of the gaussian
naxis1=value:   Optional, the size of the resulting array in the first dimension
naxis2=value:   Optional, the size of the resulting array in the second dimension


See also
function quickgauss