casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
casa::vi::FinalTvi2 Class Reference

VisibilityIterator2 iterates through one or more readonly MeasurementSets. More...

#include <FinalTvi2.h>

Inheritance diagram for casa::vi::FinalTvi2:
casa::vi::TransformingVi2 casa::vi::ViImplementation2

List of all members.

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

Detailed Description

VisibilityIterator2 iterates through one or more readonly MeasurementSets.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

The VisibilityIterator2 is a readonly iterator returning visibilities

Synopsis

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.

Example

Motivation

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.

Thrown Exceptions

To Do

Definition at line 108 of file FinalTvi2.h.


Constructor & Destructor Documentation

casa::vi::FinalTvi2::FinalTvi2 ( ViImplementation2 inputVi,
VisibilityIterator2 vi,
MeasurementSet finalMs,
Bool  isWritable 
)
virtual casa::vi::FinalTvi2::~FinalTvi2 ( ) [virtual]

Destructor.


Member Function Documentation

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.


Member Data Documentation

Definition at line 227 of file FinalTvi2.h.

Definition at line 228 of file FinalTvi2.h.

Definition at line 229 of file FinalTvi2.h.


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