1 GAUSS_2D Single component two‐dimension gaussian fitting
        GAUSS_2D

    This  task fits a single 2 dimensional  elliptical  gaussian  to  an im‐
    age.  The fitted gaussian is kept on an output image.   All  coordinates
    are USER coordinates, not pixels.  Each parameter is followed by a  code
    to indicate whether it is fixed (code 1) or variable (code 0).

    If the input image is actually a cube, a  gaussian  is  fitted  to  each
    plane.
2 IN$
        TASK\FILE       "Input Image" IN$

    The name of the input image (which can be a cube)
2 RES$
        TASK\FILE       "Residuals" RES$

    The name of the image of fit residuals.
2 OUT$
        TASK\FILE       "Output file " OUT$

    The  name  of the output file. This is an ASCII file, formatted as a ta‐
    ble, with columns:
    1,2  : Peak intensity and error (map units)
    3,4  : X position and error (radians)
    5,6  : Y position and error (radians)
    7,8  : Major Width and error (radians)
    9,10 : Minor Width and error (radians)
    11,12: Position Angle and error (radians)
    13,14: Plane (and hyperplane) numbers.

2 MAX_INT$
        TASK\REAL       "Maximum Intensity" MAX_INT$[2]

    An initial guess  for  the  peak  intensity  (in  map  units),  and  the
    corresponding  control code.  The code is an integer interpreted as fol‐
    lows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 X_POS$
        TASK\REAL       "Position of maximum in X" X_POS$[2]

    An initial guess for the X position of the peak (user coordinates),  and
    the  corresponding  control code.  The code is an integer interpreted as
    follows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 Y_POS$
        TASK\REAL       "Position of maximum in Y" Y_POS$[2]

    An initial guess for the Y position of the peak (user coordiantes),  and
    the  corresponding  control code.  The code is an integer interpreted as
    follows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 MAJOR$
        TASK\REAL       "Major axis of ellipse" MAJOR$[2]

    An initial guess for the major axis (full width to half power,  in  user
    coordinates)  of  the  ellipse, and the corresponding control code.  The
    code is an integer interpreted as follows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 MINOR$
        TASK\REAL       "Minor axis of ellipse" MINOR$[2]

    An initial guess for the minor axis (full width to half power,  in  user
    coordinates)  of  the  ellipse, and the corresponding control code.  The
    code is an integer interpreted as follows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 POSANG$
        TASK\REAL       "Position angle of ellipse" POSANG$[2]

    An initial guess for position angle  (in  degrees,  from  North  towards
    East)  of  the ellipse, and the corresponding control code.  The code is
    an integer interpreted as follows :
            0       adjustable parameter
            1       fixed parameter
            2       adjustable parameter (head of group)
            3       parameter fixed with respect to parameter coded 2 or 4
            4       fixed parameter (head of group)
2 BLC$
        TASK\INTEGER    "Bottom left corner" BLC$[4]

    Bottom Left Corner of area to be fitted. 0 ==> whole array
2 TRC$
        TASK\INTEGER    "Top right corner" TRC$[4]

    Top Right Corner of area to be fitted. 0 ==> Whole array
2 SIGMA$
        TASK\REAL       "Typical sigma" SIGMA$

    An initial estimate for the rms noise level in the image.
1 ENDOFHELP






















