casa
5.7.0-16
|
A factory for generating ViImplementation2 layers that optionally include calibration (via CalibratingVi2) and time-averaging (via AveragingTvi2). More...
#include <LayeredVi2Factory.h>
Public Member Functions | |
LayeredVi2Factory (casacore::MeasurementSet *ms, IteratingParameters *iterpar, AveragingParameters *avepar=0) | |
Non-calibrating version. More... | |
LayeredVi2Factory (casacore::MeasurementSet *ms, IteratingParameters *iterpar, const casacore::Record &calrec, AveragingParameters *avepar=0) | |
Calibrating version, via CalLib Record. More... | |
LayeredVi2Factory (casacore::MeasurementSet *ms, IteratingParameters *iterpar, const casacore::String &callib, AveragingParameters *avepar=0) | |
Calibrating version, vis CalLib casacore::String (filename or casacore::String) More... | |
~LayeredVi2Factory () | |
vi::ViImplementation2 * | createVi () const |
vi::ViImplementation2 * | createVi (vi::ViImplementation2 *) const |
Public Member Functions inherited from casa::vi::ViFactory | |
virtual | ~ViFactory () |
Additional Inherited Members |
A factory for generating ViImplementation2 layers that optionally include calibration (via CalibratingVi2) and time-averaging (via AveragingTvi2).
Public interface
Factory for layered ViImplementation2 construction
LayeredVi2Factory generates a Visibility Iterator implementation (ViImplementation2) object that can be plugged into a Visibility Iterator (VisibilityIterator2) object, so that the user can access the data using the Visibility Iterator interface. The ViImplementation2 generated by this factory consists of an underlying VisibilityIteratorImpl2, and (optionally) CalibratingVi2 and AveragingTvi2 ViImplementation2s, thereby supporting these operations in sequence. When both calibration and averaging are invoked, calibration is hard-wired to occur first.
This class makes the combination of OTF calibration application and time-averaging portable, and available to all VisibilityIterator2 users.
External usage is quite simple, and compliant with the 'normal' VI/VB framework.
The user first makes objects describing the data iteration, calibration parameters, and averaging parameters:
Then these parameter objects, along with a casacore::MeasurementSet pointer, are used to make a factory suitable for the generic VisibilityIterator2 ctor, which is then invoked
Once this is done one can normally iterate and access OTF calibrated and averaged data:
casacore::Notice that it is the responsibility of the application layer to delete the VisibilityIterator2 pointer returned by the factory method. However the life cycle of the VisBuffer2 object is responsibility of the VisibilityIterator2 object.
Definition at line 134 of file LayeredVi2Factory.h.
casa::vi::LayeredVi2Factory::LayeredVi2Factory | ( | casacore::MeasurementSet * | ms, |
IteratingParameters * | iterpar, | ||
AveragingParameters * | avepar = 0 |
||
) |
Non-calibrating version.
casa::vi::LayeredVi2Factory::LayeredVi2Factory | ( | casacore::MeasurementSet * | ms, |
IteratingParameters * | iterpar, | ||
const casacore::Record & | calrec, | ||
AveragingParameters * | avepar = 0 |
||
) |
Calibrating version, via CalLib Record.
casa::vi::LayeredVi2Factory::LayeredVi2Factory | ( | casacore::MeasurementSet * | ms, |
IteratingParameters * | iterpar, | ||
const casacore::String & | callib, | ||
AveragingParameters * | avepar = 0 |
||
) |
Calibrating version, vis CalLib casacore::String (filename or casacore::String)
casa::vi::LayeredVi2Factory::~LayeredVi2Factory | ( | ) |
|
virtual |
Implements casa::vi::ViFactory.
|
inline |
Definition at line 156 of file LayeredVi2Factory.h.
|
private |
Definition at line 163 of file LayeredVi2Factory.h.
|
private |
Definition at line 165 of file LayeredVi2Factory.h.
|
private |
Definition at line 166 of file LayeredVi2Factory.h.
|
private |
Definition at line 168 of file LayeredVi2Factory.h.
|
private |
Definition at line 164 of file LayeredVi2Factory.h.
|
private |
Definition at line 162 of file LayeredVi2Factory.h.
|
private |
Definition at line 156 of file LayeredVi2Factory.h.
|
private |
Definition at line 167 of file LayeredVi2Factory.h.