<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="uvsub" category="manipulation, calibration">
<shortdescription>Subtract/add model from/to the corrected visibility data.</shortdescription>
This function subtracts model visibility data (MODEL_DATA column) from corrected visibility
data (CORRECTED_DATA column) leaving the residuals in the corrected data column. If the
parameter 'reverse' is set true, the process is reversed. Note the DATA column is left untouched.
If the ms has no CORRECTED _DATA column, one is made, copying DATA column, ahead of doing the
<param type="path" name="vis" mustexist="true"><shortdescription>Name of input visibility file (MS)</shortdescription><description>Name of input visibility file (MS)</description>
<example>vis='ngc5921.ms'</example>
<param type="bool" name="reverse"><shortdescription>reverse the operation (add rather than subtract)</shortdescription><description>reverse the operation (add rather than subtract)</description>
This function subtracts model visibility data from corrected visibility
data leaving the residuals in the corrected data column. If the
parameter 'reverse' is set true, the process is reversed.
Please note the model visibility used is the one that has been saved in the MODEL_DATA of the MS and the
CORRECTED_DATA column is the one that is modified. If no CORRECTED_DATA column exists in the MS, one will be created and
a copy of the DATA column is saved in it before the uvsub operation selected is performed. uvsub does not modify the DATA column.
vis -- Name of input visibility file (MS)
default: none; example: vis='ngc5921.ms'
reverse -- Reverse the operation (add rather than subtract)
default: False; example: reverse=true
uvsub(vis='ngc5921.ms', reverse=False)