<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/xmlcasa/xml/casa.xsd" xmlns="http://casa.nrao.edu/schema/psetTypes.html" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<task type="function" name="specfit" category="analysis">
<shortdescription>Fit 1-dimensional gaussians and/or polynomial models to an image or image region</shortdescription>
<param type="path" name="imagename" mustexist="true"><shortdescription>Name of the input image</shortdescription><description>Name of the input image</description>
<example>imagename='ngc5921_task.image'</example>
<param type="string" direction="in" name="box"><shortdescription>Rectangular region to select in direction plane. Default is to use the entire direction plane.</shortdescription><description>Rectangular region to select in direction plane. Default is to use the entire direction plane.</description>
<example>box="4,4,10,10"</example>
<param type="string" direction="in" name="region"><shortdescription>Region selection. Default is to use the full image.</shortdescription><description>Region selection. Default is to use the full image.</description>
<example>region="myregion.rgn"</example>
<param type="string" direction="in" name="chans"><shortdescription>Channels to use. Default is to use all channels.</shortdescription><description>Channels to use. Default is to use all channels.</description>
<param type="string" direction="in" name="stokes"><shortdescription>Stokes planes to use. Default is to use all Stokes planes.</shortdescription><description>Stokes planes to use. Default is to use all Stokes planes.</description>
<example>stokes="I"</example>
<param type="int" direction="in" name="axis"><shortdescription>The profile axis. Default: use the spectral axis if one exists, axis 0 otherwise (<0).</shortdescription><description>The profile axis. Default: use the spectral axis if one exists, axis 0 otherwise (<0).</description>
<example>axis=3</example>
<param type="string" direction="in" name="mask"><shortdescription>Mask to use. Default is none..</shortdescription><description>Mask to use. Default is none..</description>
<type>string</type><type>stringVec</type>
<param type="int" direction="in" name="ngauss" subparam="true"><shortdescription>Number of Gaussian elements. Default: 1.</shortdescription><description>Number of Gaussian elements. Default: 1.</description>
<example>ngauss=2</example>
<param type="int" direction="in" name="poly"><shortdescription>Order of polynomial element. Default: do not fit a polynomial (<0).</shortdescription><description>Order of polynomial element. Default: do not fit a polynomial (<0).</description>
<example>poly=4</example>
<param type="string" direction="in" name="estimates"><shortdescription>Name of file containing initial estimates. Default: No initial estimates ("").</shortdescription><description>Name of file containing initial estimates. Default: No initial estimates ("").</description>
<param type="int" direction="in" name="minpts"><shortdescription>Minimum number of unmasked points necessary to attempt fit.</shortdescription><description>Minimum number of unmasked points necessary to attempt fit.</description>
<param type="bool" direction="in" name="multifit"><shortdescription>If true, fit a profile along the desired axis at each pixel in the specified region. If false, average the non-fit axis pixels and do a single fit to that average profile. Default False.</shortdescription><description>If true, fit a profile along the desired axis at each pixel in the specified region. If false, average the non-fit axis pixels and do a single fit to that average profile. Default False.</description>
<example>multifit=True</example>
<param type="string" direction="in" name="model"><shortdescription>Name of model image. Default: do not write the model image ("").</shortdescription><description>Name of model image. Default: do not write the model image ("").</description>
<example>model="mymodel.im"</example>
<param type="string" direction="in" name="residual"><shortdescription>Name of residual image. Default: do not write the residual image ("").</shortdescription><description>Name of residual image. Default: do not write the residual image ("").</description>
<example>residual="myresid.im"</example>
<param type="string" direction="in" name="amp" subparam="true"><shortdescription>Name of amplitude solution image. Default: do not write the image ("").</shortdescription><description>Name of amplitude solution image. Default: do not write the image ("").</description>
<example>amp="amp"</example>
<param type="string" direction="in" name="amperr" subparam="true"><shortdescription>Name of amplitude solution error image. Default: do not write the image ("").</shortdescription><description>Name of amplitude solution error image. Default: do not write the image ("").</description>