casa
$Rev:20696$
|
VisibilityIterator2 iterates through one or more readonly MeasurementSets. More...
#include <FinalTvi2.h>
Public Member Functions | |
FinalTvi2 (ViImplementation2 *inputVi, VisibilityIterator2 *vi, MeasurementSet &finalMs, Bool isWritable) | |
virtual | ~FinalTvi2 () |
Destructor. | |
virtual void | origin () |
+==================================+ | | | Iteration Control and Monitoring | | | +==================================+ | |
virtual void | next () |
virtual void | writeBackChanges (VisBuffer2 *vb) |
+=========================+ | | | Subchunk Data Accessors | | | +=========================+ | |
virtual void | writeFlag (const Matrix< Bool > &flag) |
Write/modify the flags in the data. | |
virtual void | writeFlag (const Cube< Bool > &flag) |
Write/modify the flags in the data. | |
virtual void | writeFlagRow (const Vector< Bool > &rowflags) |
Write/modify the flag row column; dimension Vector (nrow) | |
virtual void | writeFlagCategory (const Array< Bool > &fc) |
virtual void | writeVisCorrected (const Cube< Complex > &vis) |
Write/modify the visibilities. | |
virtual void | writeVisModel (const Cube< Complex > &vis) |
virtual void | writeVisObserved (const Cube< Complex > &vis) |
virtual void | writeWeight (const Vector< Float > &wt) |
Write/modify the weights. | |
virtual void | writeWeightMat (const Matrix< Float > &wtmat) |
Write/modify the weightMat. | |
virtual void | writeWeightSpectrum (const Cube< Float > &wtsp) |
Write/modify the weightSpectrum. | |
virtual void | writeSigma (const Vector< Float > &sig) |
Write/modify the Sigma. | |
virtual void | writeSigmaMat (const Matrix< Float > &sigmat) |
Write/modify the ncorr x nrow SigmaMat. | |
virtual void | writeModel (const RecordInterface &rec, Bool iscomponentlist=True, Bool incremental=False) |
Write the information needed to generate on-the-fly model visibilities. | |
Protected Member Functions | |
void | configureNewSubchunk () |
void | writeDataValues (MeasurementSet &ms, const RefRows &rows) |
void | writeKeyValues (MeasurementSet &ms, const RefRows &rows) |
void | writeMiscellaneousValues (MeasurementSet &ms, const RefRows &rows) |
Private Attributes | |
ViColumns2 | columns_p |
Bool | columnsAttached_p |
MeasurementSet | ms_p |
VisibilityIterator2 iterates through one or more readonly MeasurementSets.
Public interface
The VisibilityIterator2 is a readonly iterator returning visibilities
VisibilityIterator2 provides iteration with various sort orders for one or more MSs. It has member functions to retrieve the fields commonly needed in synthesis calibration and imaging.
One should use VisBuffer to access chunks of data.
For imaging and calibration you need to access an MS in some consistent order (by field, spectralwindow, time interval etc.). This class provides that access.
Definition at line 108 of file FinalTvi2.h.
casa::vi::FinalTvi2::FinalTvi2 | ( | ViImplementation2 * | inputVi, |
VisibilityIterator2 * | vi, | ||
MeasurementSet & | finalMs, | ||
Bool | isWritable | ||
) |
virtual casa::vi::FinalTvi2::~FinalTvi2 | ( | ) | [virtual] |
Destructor.
void casa::vi::FinalTvi2::configureNewSubchunk | ( | ) | [protected] |
virtual void casa::vi::FinalTvi2::next | ( | ) | [virtual] |
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::origin | ( | ) | [virtual] |
+==================================+ | | | Iteration Control and Monitoring | | | +==================================+
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeBackChanges | ( | VisBuffer2 * | vb | ) | [virtual] |
+=========================+ | | | Subchunk Data Accessors | | | +=========================+
+------------------------+ | | | Angular Data Providers | | | +------------------------+
+=========================+ | | | Chunk and MS Level Data | | | +=========================+
+-------------------+ | | | Writeback Methods | | | +-------------------+
This method writes back any changed (dirty) components of the provided VisBuffer and is the preferred method for writing data out.
Reimplemented from casa::vi::TransformingVi2.
void casa::vi::FinalTvi2::writeDataValues | ( | MeasurementSet & | ms, |
const RefRows & | rows | ||
) | [protected] |
virtual void casa::vi::FinalTvi2::writeFlag | ( | const Matrix< Bool > & | flag | ) | [virtual] |
Write/modify the flags in the data.
This will flag all channels in the original data that contributed to the output channel in the case of channel averaging. All polarizations have the same flag value.
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeFlag | ( | const Cube< Bool > & | flag | ) | [virtual] |
Write/modify the flags in the data.
This writes the flags as found in the MS, Cube (npol,nchan,nrow), where nrow is the number of rows in the current iteration (given by nRow ()).
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeFlagCategory | ( | const Array< Bool > & | fc | ) | [virtual] |
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeFlagRow | ( | const Vector< Bool > & | rowflags | ) | [virtual] |
Write/modify the flag row column; dimension Vector (nrow)
Reimplemented from casa::vi::TransformingVi2.
void casa::vi::FinalTvi2::writeKeyValues | ( | MeasurementSet & | ms, |
const RefRows & | rows | ||
) | [protected] |
void casa::vi::FinalTvi2::writeMiscellaneousValues | ( | MeasurementSet & | ms, |
const RefRows & | rows | ||
) | [protected] |
virtual void casa::vi::FinalTvi2::writeModel | ( | const RecordInterface & | rec, |
Bool | iscomponentlist = True , |
||
Bool | incremental = False |
||
) | [virtual] |
Write the information needed to generate on-the-fly model visibilities.
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeSigma | ( | const Vector< Float > & | sig | ) | [virtual] |
Write/modify the Sigma.
virtual void casa::vi::FinalTvi2::writeSigmaMat | ( | const Matrix< Float > & | sigmat | ) | [virtual] |
Write/modify the ncorr x nrow SigmaMat.
virtual void casa::vi::FinalTvi2::writeVisCorrected | ( | const Cube< Complex > & | vis | ) | [virtual] |
Write/modify the visibilities.
This is possibly only for a 'reference' MS which has a new DATA column. The first axis of the matrix should equal the selected number of channels in the original MS. If the MS does not contain all polarizations, only the parallel hand polarizations are used. virtual void writeVisCorrected (const Matrix<CStokesVector> & visibilityStokes); virtual void writeVisModel (const Matrix<CStokesVector> & visibilityStokes); virtual void writeVisObserved (const Matrix<CStokesVector> & visibilityStokes);
Write/modify the visibilities This writes the data as found in the MS, Cube (npol,nchan,nrow).
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeVisModel | ( | const Cube< Complex > & | vis | ) | [virtual] |
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeVisObserved | ( | const Cube< Complex > & | vis | ) | [virtual] |
Reimplemented from casa::vi::TransformingVi2.
virtual void casa::vi::FinalTvi2::writeWeight | ( | const Vector< Float > & | wt | ) | [virtual] |
Write/modify the weights.
virtual void casa::vi::FinalTvi2::writeWeightMat | ( | const Matrix< Float > & | wtmat | ) | [virtual] |
Write/modify the weightMat.
virtual void casa::vi::FinalTvi2::writeWeightSpectrum | ( | const Cube< Float > & | wtsp | ) | [virtual] |
Write/modify the weightSpectrum.
Reimplemented from casa::vi::TransformingVi2.
ViColumns2 casa::vi::FinalTvi2::columns_p [private] |
Definition at line 227 of file FinalTvi2.h.
Bool casa::vi::FinalTvi2::columnsAttached_p [private] |
Definition at line 228 of file FinalTvi2.h.
MeasurementSet casa::vi::FinalTvi2::ms_p [private] |
Definition at line 229 of file FinalTvi2.h.