<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/tools/xml/casa.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://casa.nrao.edu/schema/psetTypes.html">
<tool module="mstransformer" name="mstransformer">
<include>mstransformer_forward.h</include>
<include>mstransformer_private.h</include>
<shortdescription>Tool to apply spw and frame transformations in MS</shortdescription>
The {\tt mstransformer} tool can apply the following transformations to the MS:
* read an input MS or Multi-MS
* ability to create an output MS or MMS
* spw combination and separation
* channel averaging taking weights into account
* time averaging taking a minimum number of baselines (to-be-implemented)
* reference frame transformation
\medskip\noindent\textbf{Parse the configuration parameters}
The minimum parameters that the tool accepts are the inputms and outputms. All the
remaining parameters are optional. They are:
data selection parameters (spw, field, scan, state, correlation, observation, array,
timerange, uvrange and antenna). Please, see help mstransform for all the available
parameters and their types.
myparams['inputms']='myfile.ms'
myparams['outputms']='myout.ms'
myparams['datacolumn']='DATA'
myparams['combinespws']=True
\medskip\noindent\textbf{Open the Measurement Set}
Once all the parameters are parsed, open the MS and run the setup. These first step
will check the data columns to fill, initialize the data selection parameters and
get the requested input number of channels. These two functions get no parameters.
# Open and setup the framework.
\medskip\noindent\textbf{Run the tool}
Run the tool to apply all the transformations to the data.