<param type="any" name="rms"><shortdescription>RMS to use in calculation of uncertainties. Numeric or valid quantity (record or string). If numeric, it is given units of the input image. If quantity, units must conform to image units. If not positive, the rms of the residual image, in the region of the fit, is used.</shortdescription><description>RMS to use in calculation of uncertainties. Numeric or valid quantity (record or string). If numeric, it is given units of the input image. If quantity, units must conform to image units. If not positive, the rms of the residual image, in the region of the fit, is used.</description>
<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="imfit" category="analysis">
<shortdescription>Fit one or more elliptical Gaussian components on an image region(s)</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.im'</example>
<param type="string" name="box"><shortdescription>Rectangular region(s) to select in direction plane. Default is to use the entire direction plane.</shortdescription><description>Rectangular region(s) to select in direction plane. Default is to use the entire direction plane.</description>
<example>box='100,120,200,200'</example>
<param type="any" name="region"><shortdescription>Region selection. Default is to use the full image.</shortdescription><description>Region selection. Default is to use the full image.</description>
<any type="variant" limittype="string stringArray record"/>
<example>region='myregion'</example>
<param type="any" name="chans"><shortdescription>Channels to use. Default is to use all channels.</shortdescription><description>Channels to use. Default is to use all channels.</description>
<any type="variant" limittype="string int"/>
<param type="string" name="stokes"><shortdescription>Stokes planes to use. Default is to use first Stokes plane.</shortdescription><description>Stokes planes to use. Default is to use first Stokes plane.</description>
<example>stokes='Q'</example>
<param type="string" name="mask"><shortdescription>Mask to use. Default is none.</shortdescription><description>Mask to use. Default is none.</description>
<param type="intVec" name="includepix"><shortdescription>Range of pixel values to include for fitting.</shortdescription><description>Range of pixel values to include for fitting.</description>
<example>includepix=[0.5,500]</example>
<param type="intVec" name="excludepix"><shortdescription>Range of pixel values to exclude for fitting.</shortdescription><description>Range of pixel values to exclude for fitting.</description>
<example>excludepix=[-500,.05]</example>
<param type="string" name="residual"><shortdescription>Name of output residual image.</shortdescription><description>Name of output residual image.</description>
<example>residual='ngc5921_fit_resid.im'</example>
<param type="string" name="model"><shortdescription>Name of output model image.</shortdescription><description>Name of output model image.</description>
<example>model='ngc5921_fit_model.im'</example>
<param type="string" name="estimates"><shortdescription>Name of file containing initial estimates of component parameters.</shortdescription><description>Name of file containing initial estimates of component parameters.</description>
<example>estimates='ngc5921_fit_estimates.txt'</example>
<param type="string" name="logfile"><shortdescription>Name of file to write fit results.</shortdescription><description>Name of file to write fit results.</description>
<example>logfile="myimfitlog.txt"</example>
<param type="bool" name="append" subparam="true"><shortdescription>If logfile exists, append to it if True or overwrite it if False</shortdescription><description>If logfile exists, append to it if True or overwrite it if False</description>
<example>append=True</example>
<param type="string" name="newestimates"><shortdescription>File to write fit results which can be used as initial estimates for next run.</shortdescription><description>File to write fit results which can be used as initial estimates for next run.</description>
<example>newestimates="myestimates.txt"</example>
<param type="string" name="complist"><shortdescription>Name of output component list table.</shortdescription><description>Name of output component list table.</description>