<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="sdbaseline" category="single dish">
<shortdescription>Fit/subtract a spectral baseline </shortdescription>
Task sdbaseline fits and/or subtracts baseline from single-dish spectra.
Given baseline parameters (baseline type, order, etc.), sdbaseline
computes the best-fit baseline for each spectrum by least-square fitting
method and, if you want, subtracts it. The best-fit baseline parameters
(including baseline type, coefficients of basis functions, etc.) and
other values such as residual rms can be saved in various formats
including ascii text (in human-readable format or CSV format) or baseline
Sdbaseline has another mode to 'apply' a baseline table to a MS data;
for each spectrum in MS, the best-fit baseline is reproduced from the
baseline parameters stored in the given baseline table and subtracted.
Putting 'fit' and 'subtract' into separate processes can be useful for
pipeline processing for huge dataset.
<param type="path" name="infile" mustexist="true"><shortdescription>name of input SD dataset</shortdescription><description>name of input SD dataset</description>
<param type="string" name="datacolumn">
<shortdescription>name of data column to be used ["data", "float_data", or "corrected"]</shortdescription>
<description>name of data column to be used ["data", "float_data", or "corrected"]</description>
<allowed ignorecase="true" kind="enum">
<value>float_data</value>
<param type="string" name="antenna"><shortdescription>select data by antenna name or ID, e.g. "PM03"</shortdescription><description>select data by antenna name or ID, e.g. "PM03"</description>
<param type="string" name="field"><shortdescription>select data by field IDs and names, e.g. "3C2*" (""=all)</shortdescription><description>select data by field IDs and names, e.g. "3C2*" (""=all)</description>
<param type="string" name="spw"><shortdescription>select data by IF IDs (spectral windows), e.g. "3,5,7" (""=all)</shortdescription><description>select data by IF IDs (spectral windows), e.g. "3,5,7" (""=all)</description>
<param type="string" name="timerange"><shortdescription>select data by time range, e.g. "09:14:0~09:54:0" (""=all) (see examples in help)</shortdescription><description>select data by time range, e.g. "09:14:0~09:54:0" (""=all) (see examples in help)</description>