<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="immath" category="analysis">
<shortdescription>Perform math operations on images</shortdescription>
<description> math on images
</description>
<input>
<param type="any" name="imagename"><shortdescription>a list of input images </shortdescription><description>a list of input images </description>
<any type="variant" limttypes="string stringArray"/>
<value type="string"/>
</param>
<param type="string" name="mode"><shortdescription>mode for math operation (evalexpr, spix, pola, poli, lpoli, tpoli)</shortdescription><description>mode for math operation (evalexpr, spix, pola, poli, lpoli, tpoli)</description>
<value>evalexpr</value>
<allowed kind="enum">
<value>evalexpr</value>
<value>spix</value>
<value>pola</value>
<value>poli</value>
<value>lpoli</value>
<value>tpoli</value>
</allowed>
<example>'evalexpr', 'spix', 'pola', or 'poli' </example>
</param>
<param type="string" name="outfile"><shortdescription>File where the output is saved</shortdescription><description>File where the output is saved</description>
<value>immath_results.im</value>
<example>outfile="newimage"</example>
</param>
<param type="string" name="expr" subparam="true"><shortdescription>Mathematical expression using images</shortdescription><description>Mathematical expression using images</description>
<value>IM0</value>
<example>expr='"sin(image1.im)+(image2.im*2)+real(image3.im)"'</example>
</param>
<param type="any" name="varnames" subparam="true"><shortdescription>a list of variable names to use with the image files</shortdescription><description>a list of variable names to use with the image files</description>
<any type="variant" limttypes="string stringArray"/>
<value type="string"/>
</param>
<param type="string" name="sigma" subparam="true"><shortdescription>standard deviation of noise for debiasing</shortdescription><description>standard deviation of noise for debiasing</description>
<value>0.0mJy/beam</value>
</param>
<param type="string" name="polithresh" subparam="true"><shortdescription>Threshold in linear polarization intensity image below which to mask pixels.</shortdescription><description>Threshold in linear polarization intensity image below which to mask pixels.</description>
<value type="string"/>
</param>
<param type="string" name="mask"><shortdescription>Mask to use. Default is none.</shortdescription><description>Mask to use. Default is none.</description>
<value/>
</param>
<param type="string" name="region"><shortdescription>Region selection. Default is to use the full image.</shortdescription><description>Region selection. Default is to use the full image.</description>
<value/>
</param>
<param type="string" 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>
<value/>
</param>
<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>
<value/>
</param>
<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>
<value/>
<example>stokes='IQ'</example>
<example>stokes='RR,LL'</example>
</param>
<param type="bool" direction="in" name="stretch" subparam="true"><shortdescription>Stretch the mask if necessary and possible? See help stretch.par </shortdescription><description>Stretch the mask if necessary and possible? See help stretch.par </description>
<value>False</value>
</param>
<param type="string" name="imagemd"><shortdescription>An image name from which metadata should be copied. The input can be either an image listed under imagename or any other image on disk. Leaving this parameter unset may copy header metadata from any of the input images, which one is not guaranteed. </shortdescription><description>An image name from which metadata should be copied. The input can be either an image listed under imagename or any other image on disk. Leaving this parameter unset may copy header metadata from any of the input images, which one is not guaranteed. </description>
<value/>
</param>
<param type="string" name="prec"><shortdescription>Precision for the output image pixels if mode="evalexpr" or "spix". "float" or "double" (minimum match supported)</shortdescription><description>Precision for the output image pixels if mode="evalexpr" or "spix". "float" or "double" (minimum match supported)</description>
<value>float</value>
</param>
<constraints>
<when param="mode">
<equals value="evalexpr">
<default param="expr"><value>""</value></default>
<default param="varnames"><value>""</value></default>
</equals>