<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="imregrid" category="analysis">
<shortdescription>regrid an image onto a template image</shortdescription>
Imregrid will regrid an input image onto a new coordinate system from a template image
or to a new directional reference frame. If a template image is used, then the input and
template images must have the same coordinate structure.
<param type="path" name="imagename" mustexist="true"><shortdescription>Name of the source image</shortdescription><description>Name of the source image</description>
<param type="any" name="template"><shortdescription>A dictionary, refcode, or name of an image that provides the output shape and coordinate system</shortdescription><description>A dictionary, refcode, or name of an image that provides the output shape and coordinate system</description>
<value type="string">get</value>
<param type="string" name="output"><shortdescription>Name for the regridded image</shortdescription><description>Name for the regridded image</description>
<param type="bool" direction="in" name="asvelocity"><shortdescription>Regrid spectral axis in velocity space rather than frequency space?</shortdescription><description>Regrid spectral axis in velocity space rather than frequency space?</description>
<param type="intVec" direction="in" name="axes"><shortdescription>The pixel axes to regrid. -1 => all.</shortdescription><description>The pixel axes to regrid. -1 => all.</description>
<value><value>-1</value></value>
<param type="intVec" name="shape" subparam="true"><shortdescription>Shape of the output image. Only used if template is an image. If not specified (-1), the output image shape will be the same as the template image shape along the axes that are regridded and the same as input image shape along the axes which are not regridded.</shortdescription><description>Shape of the output image. Only used if template is an image. If not specified (-1), the output image shape will be the same as the template image shape along the axes that are regridded and the same as input image shape along the axes which are not regridded.</description>
<value><value>-1</value></value>
<param type="string" name="interpolation"><shortdescription>The interpolation method. One of "nearest", "linear", "cubic".</shortdescription><description>The interpolation method. One of "nearest", "linear", "cubic".</description>
<param type="int" name="decimate"><shortdescription>Decimation factor for coordinate grid computation</shortdescription><description>Decimation factor for coordinate grid computation</description>
<param type="bool" name="replicate"><shortdescription>Replicate image rather than regrid?</shortdescription><description>Replicate image rather than regrid?</description>
<param type="bool" name="overwrite"><shortdescription>Overwrite (unprompted) pre-existing output file?</shortdescription><description>Overwrite (unprompted) pre-existing output file?</description>
<notequals type="string" value="get">
<default param="shape"><value type="intVec"><value>-1</value></value></default>