<param type="string" name="statalg"><shortdescription>Statistics algorithm to use for computing variances. Supported values are "chauvenet", "classic", "fit-half", and "hinges-fences". Minimum match is supported, although the full string must be specified for the subparameters to appear in the inputs list.</shortdescription><description>Statistics algorithm to use for computing variances. Supported values are "chauvenet", "classic", "fit-half", and "hinges-fences". Minimum match is supported, although the full string must be specified for the subparameters to appear in the inputs list.</description>
<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="statwt" category="manipulation">
<shortdescription>Compute and set weights based on variance of data.</shortdescription>
<param type="path" name="vis" mustexist="true"><shortdescription>Name of measurement set</shortdescription><description>Name of measurement set</description>
<param type="bool" name="selectdata"><shortdescription>Enable data selection parameters</shortdescription><description>Enable data selection parameters</description>
<value type="bool">True</value>
<param type="string" name="field" subparam="true"><shortdescription>Selection based on field names or field index numbers. Default is all.</shortdescription><description>Selection based on field names or field index numbers. Default is all.</description>
<example>"0~2", or "3C286"</example>
<param type="string" name="spw" subparam="true"><shortdescription>Selection based on spectral windows:channels. Default is all.</shortdescription><description>Selection based on spectral windows:channels. Default is all.</description>
<example>"3"</example>
<param type="string" name="intent" subparam="true"><shortdescription>Selection based on intents. Default is all.</shortdescription><description>Selection based on intents. Default is all.</description>
<example>"my_intent"</example>
<param type="string" name="array" subparam="true"><shortdescription>Selection based on array IDs. Default is all.</shortdescription><description>Selection based on array IDs. Default is all.</description>
<example>"1"</example>
<param type="string" name="observation" subparam="true"><shortdescription>Selection based on observation IDs. Default is all.</shortdescription><description>Selection based on observation IDs. Default is all.</description>
<example>"1"</example>
<param type="string" name="scan" subparam="true"><shortdescription>Select data by scan numbers.</shortdescription><description>Select data by scan numbers.</description>
<example>"5"</example>
<param type="string" name="combine"><shortdescription>Ignore changes in these columns (scan, field, and/or state) when aggregating samples to compute weights. The value "corr" is also supported to aggregate samples across correlations.</shortdescription><description>Ignore changes in these columns (scan, field, and/or state) when aggregating samples to compute weights. The value "corr" is also supported to aggregate samples across correlations.</description>
<example>"scan,field"</example>
<param type="any" name="timebin"><shortdescription>Length for binning in time to determine statistics. Can either be integer to be multiplied by the representative integration time, a quantity (string) in time units</shortdescription><description>Length for binning in time to determine statistics. Can either be integer to be multiplied by the representative integration time, a quantity (string) in time units</description>
<type>string</type><type>int</type>
<value type="int">1</value>
<example>5 or "100s"</example>
<param type="bool" name="slidetimebin"><shortdescription>Use a sliding window for time binning, as opposed to time block processing?</shortdescription><description>Use a sliding window for time binning, as opposed to time block processing?</description>
<param type="any" name="chanbin"><shortdescription>Channel bin width for computing weights. Can either be integer, in which case it is interpreted as number of channels to include in each bin, or a string "spw" or quantity with frequency units.</shortdescription><description>Channel bin width for computing weights. Can either be integer, in which case it is interpreted as number of channels to include in each bin, or a string "spw" or quantity with frequency units.</description>
<type>string</type><type>int</type>