<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="immoments" category="analysis">
<shortdescription>Compute moments from an image</shortdescription>
<param type="path" name="imagename" kind="image" mustexist="true"><shortdescription>Name of the input image</shortdescription><description>Name of the input image</description>
<example>imagename=ngc5921_task.image</example>
<param type="intVec" name="moments"><shortdescription>List of moments you would like to compute</shortdescription><description>List of moments you would like to compute</description>
<value><value>0</value></value>
<example>moments=1</example>
<param type="any" name="axis"><shortdescription>The momement axis: ra, dec, lat, long, spectral, or stokes</shortdescription><description>The momement axis: ra, dec, lat, long, spectral, or stokes</description>
<type>string</type><type>int</type>
<value type="string">spectral</value>
<example>axis="ra"</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>
<type>string</type><type>stringVec</type>
<example>region="myregion.crtf"</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="40,40,120,120"</example>
<param type="string" name="chans"><shortdescription>Channels to use. Default is to use all channels.</shortdescription><description>Channels to use. Default is to use all channels.</description>
<example>chans="1~4"</example>
<param type="string" 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="IQ"</example>
<param type="string" name="mask"><shortdescription>Mask to use. Default is none.</shortdescription><description>Mask to use. Default is none.</description>
<value type="stringVec"/>
<example>mask="my.im > 5"</example>
<param type="any" name="includepix"><shortdescription>Range of pixel values to include</shortdescription><description>Range of pixel values to include</description>