casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
casa::MSTransform Class Reference

MSTransform: Apply transformations to data on the fly. More...

#include <MSTransform.h>

Public Member Functions

 MSTransform ()
 default constructor More...
 
 ~MSTransform ()
 destructor More...
 
void done ()
 reset everything More...
 
bool configure (casacore::Record config)
 set the defaults of the parameters casacore::Record & defaultOptions(); More...
 
bool open ()
 Open the casacore::MS and select the data. More...
 
casacore::Record run ()
 Run the tool and write the flags to the MS. More...
 

Protected Attributes

casacore::LogIO log_p
 
casacore::String msname_p
 variables used to initialize the MSTransformManager More...
 
casacore::String outputms_p
 
casacore::String spw_p
 members to parse to selectData More...
 
casacore::String scan_p
 
casacore::String field_p
 
casacore::String antenna_p
 
casacore::String timerange_p
 
casacore::String correlation_p
 
casacore::String intent_p
 
casacore::String feed_p
 
casacore::String array_p
 
casacore::String uvrange_p
 
casacore::String observation_p
 
casacore::Record config_p
 
casacore::String datacolumn_p
 
casacore::Bool isconfigured_p
 Tells if tool is already configured at least once. More...
 
MSTransformManagermdh_p
 variables for initAgents More...
 

Private Member Functions

 MSTransform (const MSTransform &)
 
MSTransformoperator= (const MSTransform &)
 

Private Attributes

casacore::LogSink logSink_p
 casacore::String validateDataColumn(casacore::String datacol); More...
 

Detailed Description

MSTransform: Apply transformations to data on the fly.

Intended use:

Prerequisite

Synopsis

MSTransform.......

Example

The following is a typical way of using this class and its methods...

MSTransform *mst = new MSTransform();

Create a casacore::Record with the desired parameters. The parameters are: data selection parameters and any parameters for the transformations.

casacore::Record params = Recod();
params.define("spw", "0,1,2");
params.define("combinespws",true);
mst->configure(params);

Open the casacore::MS, select the data and setup the output MS.

mst->open();

Run the tool and afterwards, destroy any instance of it by calling the destructor.

mst->run();
mst->done();

Motivation

To avoid multiple read/writes of the data....

Definition at line 96 of file MSTransform.h.

Constructor & Destructor Documentation

casa::MSTransform::MSTransform ( )

default constructor

casa::MSTransform::~MSTransform ( )

destructor

casa::MSTransform::MSTransform ( const MSTransform )
inlineprivate

Definition at line 155 of file MSTransform.h.

Member Function Documentation

bool casa::MSTransform::configure ( casacore::Record  config)

set the defaults of the parameters casacore::Record & defaultOptions();

configure the tool and parse the parameters

void casa::MSTransform::done ( )

reset everything

bool casa::MSTransform::open ( )

Open the casacore::MS and select the data.

MSTransform& casa::MSTransform::operator= ( const MSTransform )
inlineprivate

Definition at line 157 of file MSTransform.h.

casacore::Record casa::MSTransform::run ( )

Run the tool and write the flags to the MS.

Member Data Documentation

casacore::String casa::MSTransform::antenna_p
protected

Definition at line 111 of file MSTransform.h.

casacore::String casa::MSTransform::array_p
protected

Definition at line 116 of file MSTransform.h.

casacore::Record casa::MSTransform::config_p
protected

Definition at line 119 of file MSTransform.h.

casacore::String casa::MSTransform::correlation_p
protected

Definition at line 113 of file MSTransform.h.

casacore::String casa::MSTransform::datacolumn_p
protected

Definition at line 120 of file MSTransform.h.

casacore::String casa::MSTransform::feed_p
protected

Definition at line 115 of file MSTransform.h.

casacore::String casa::MSTransform::field_p
protected

Definition at line 110 of file MSTransform.h.

casacore::String casa::MSTransform::intent_p
protected

Definition at line 114 of file MSTransform.h.

casacore::Bool casa::MSTransform::isconfigured_p
protected

Tells if tool is already configured at least once.

Definition at line 123 of file MSTransform.h.

casacore::LogIO casa::MSTransform::log_p
protected

Definition at line 100 of file MSTransform.h.

casacore::LogSink casa::MSTransform::logSink_p
private

casacore::String validateDataColumn(casacore::String datacol);

Sink used to store history

Definition at line 157 of file MSTransform.h.

MSTransformManager* casa::MSTransform::mdh_p
protected

variables for initAgents

Definition at line 127 of file MSTransform.h.

casacore::String casa::MSTransform::msname_p
protected

variables used to initialize the MSTransformManager

Definition at line 103 of file MSTransform.h.

casacore::String casa::MSTransform::observation_p
protected

Definition at line 118 of file MSTransform.h.

casacore::String casa::MSTransform::outputms_p
protected

Definition at line 104 of file MSTransform.h.

casacore::String casa::MSTransform::scan_p
protected

Definition at line 109 of file MSTransform.h.

casacore::String casa::MSTransform::spw_p
protected

members to parse to selectData

Definition at line 108 of file MSTransform.h.

casacore::String casa::MSTransform::timerange_p
protected

Definition at line 112 of file MSTransform.h.

casacore::String casa::MSTransform::uvrange_p
protected

Definition at line 117 of file MSTransform.h.


The documentation for this class was generated from the following file: