<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="initweights" category="calibration">
<shortdescription>Initializes weight information in the MS</shortdescription>
<param type="path" name="vis" mustexist="true"><shortdescription>Name of input visibility file (MS)</shortdescription><description>Name of input visibility file (MS)</description>
<param type="string" name="wtmode"><shortdescription>Initialization mode</shortdescription><description>Initialization mode</description>
<param type="path" name="tsystable" mustexist="false" subparam="true"><shortdescription>Tsys calibration table to apply on the fly</shortdescription><description>Tsys calibration table to apply on the fly</description>
<param type="string" name="gainfield" subparam="true"><shortdescription>Select a subset of calibrators from Tsys table</shortdescription><description>Select a subset of calibrators from Tsys table</description>
<param type="string" name="interp" subparam="true"><shortdescription>Interpolation type in time[,freq]. default==\'linear,linear\'</shortdescription><description>Interpolation type in time[,freq]. default==\'linear,linear\'</description>
<param type="intVec" name="spwmap" subparam="true"><shortdescription>Spectral windows combinations to form for gaintable(s)</shortdescription><description>Spectral windows combinations to form for gaintable(s)</description>
<param type="bool" name="dowtsp"><shortdescription>Initialize the WEIGHT_SPECTRUM column</shortdescription><description>Initialize the WEIGHT_SPECTRUM column</description>
<equals value="delwtsp"/>
<equals value="delsigsp"/>
<default param="tsystable"><value type="string"/></default>
<default param="gainfield"><value type="string"/></default>
<default param="interp"><value type="string"/></default>
<default param="spwmap"><value type="intVec"/></default>
<equals value="tinttsys">
<default param="tsystable"><value type="string"/></default>
<default param="gainfield"><value type="string"/></default>
<default param="interp"><value type="string"/></default>
<default param="spwmap"><value type="intVec"/></default>
This task provides for initialization of the weight information
in the MS. For ALMA interferometry and EVLA data, it should not
generally be necessary to use this task, as the per-spectral window
weight information should have been initialized properly at
fill time (v4.2.2 and later). To set per-channel weights, use
initweights(vis=finalvis,wtmode='weight',dowtsp=True)
Several initialization modes are supported via the wtmode parameter.
If wtmode='nyq' (the default), SIGMA and WEIGHT will be
initialized according to bandwidth and integration time. This
is the theoretically correct mode for raw normalized visibilities.
(e.g., ALMA). For the EVLA, this is correct if switched-power
and bandpass calibration will later be applied.