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

A class with functions for concatenating MeasurementSets. More...

#include <MSConcat.h>

Inheritance diagram for casa::MSConcat:
casa::MSColumns casa::MSMainColumns casa::ROMSMainColumns

List of all members.

Public Member Functions

 MSConcat (MeasurementSet &ms)
void virtualconcat (MeasurementSet &otherMS, const Bool checkShapeAndCateg=True, const String &obsidAndScanTableName="")
void concatenate (const MeasurementSet &otherMS, const uInt handling=0, const String &destMSName="")
void setTolerance (Quantum< Double > &freqTol, Quantum< Double > &dirTol)
void setWeightScale (const Float weightScale)
void setRespectForFieldName (const Bool respectFieldName)

Private Member Functions

 MSConcat ()
 if their name is different
void checkShape (const IPosition &otherShape) const
void checkCategories (const ROMSMainColumns &otherCols) const
Bool checkEphIdInField (const ROMSFieldColumns &otherFldCol) const
Bool copyPointing (const MSPointing &otherPoint, const Block< uInt > &newAntIndices)
Bool copyPointingB (MSPointing &otherPoint, const Block< uInt > &newAntIndices)
Int copyObservation (const MSObservation &otherObs, const Bool remRedunObsId=True)
Block< uIntcopyAntennaAndFeed (const MSAntenna &otherAnt, const MSFeed &otherFeed)
 by default remove redundant observation table rows
Block< uIntcopyState (const MSState &otherState)
Block< uIntcopyField (const MeasurementSet &otherms)
Block< uIntcopySpwAndPol (const MSSpectralWindow &otherSpw, const MSPolarization &otherPol, const MSDataDescription &otherDD)
Bool copySource (const MeasurementSet &otherms)
Bool updateSource ()
Bool sourceRowsEquivalent (const MSSourceColumns &sourceCol, const uInt &rowi, const uInt &rowj, const Bool dontTestDirection=False)
Bool obsRowsEquivalent (const MSObservationColumns &obsCol, const uInt &rowi, const uInt &rowj)
void updateModelDataKeywords (MeasurementSet &ms)

Static Private Member Functions

static IPosition isFixedShape (const TableDesc &td)
static IPosition getShape (const ROMSDataDescColumns &ddCols, const ROMSSpWindowColumns &spwCols, const ROMSPolarizationColumns &polCols, uInt whichShape)

Private Attributes

MeasurementSet itsMS
IPosition itsFixedShape
Quantum< DoubleitsFreqTol
Quantum< DoubleitsDirTol
Float itsWeightScale
Bool itsRespectForFieldName
Vector< BoolitsChanReversed
SimpleOrderedMap< Int, IntnewSourceIndex_p
SimpleOrderedMap< Int, IntnewSourceIndex2_p
SimpleOrderedMap< Int, IntnewSPWIndex_p
SimpleOrderedMap< Int, IntnewObsIndexA_p
SimpleOrderedMap< Int, IntnewObsIndexB_p
SimpleOrderedMap< Int, IntsolSystObjects_p
Bool doSource_p
Bool doSource2_p
Bool doSPW_p
Bool doObsA_p
Bool doObsB_p

Detailed Description

A class with functions for concatenating MeasurementSets.

Intended use:

Public interface

 <h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl> 

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Definition at line 93 of file MSConcat.h.


Constructor & Destructor Documentation

casa::MSConcat::MSConcat ( ) [private]

if their name is different


Member Function Documentation

void casa::MSConcat::checkCategories ( const ROMSMainColumns otherCols) const [private]
Bool casa::MSConcat::checkEphIdInField ( const ROMSFieldColumns otherFldCol) const [private]
void casa::MSConcat::checkShape ( const IPosition otherShape) const [private]
void casa::MSConcat::concatenate ( const MeasurementSet otherMS,
const uInt  handling = 0,
const String destMSName = "" 
)
Parameters:
destMSName1 : don't concatenate the MAIN table 2 : don't concatenate the POINTING table 3 : neither concat MAIN nor POINTING table
Block<uInt> casa::MSConcat::copyAntennaAndFeed ( const MSAntenna otherAnt,
const MSFeed otherFeed 
) [private]

by default remove redundant observation table rows

Block<uInt> casa::MSConcat::copyField ( const MeasurementSet otherms) [private]
Int casa::MSConcat::copyObservation ( const MSObservation otherObs,
const Bool  remRedunObsId = True 
) [private]
Bool casa::MSConcat::copyPointing ( const MSPointing otherPoint,
const Block< uInt > &  newAntIndices 
) [private]
Bool casa::MSConcat::copyPointingB ( MSPointing otherPoint,
const Block< uInt > &  newAntIndices 
) [private]
Bool casa::MSConcat::copySource ( const MeasurementSet otherms) [private]
Block<uInt> casa::MSConcat::copySpwAndPol ( const MSSpectralWindow otherSpw,
const MSPolarization otherPol,
const MSDataDescription otherDD 
) [private]
Block<uInt> casa::MSConcat::copyState ( const MSState otherState) [private]
static IPosition casa::MSConcat::getShape ( const ROMSDataDescColumns ddCols,
const ROMSSpWindowColumns spwCols,
const ROMSPolarizationColumns polCols,
uInt  whichShape 
) [static, private]
static IPosition casa::MSConcat::isFixedShape ( const TableDesc td) [static, private]
Bool casa::MSConcat::obsRowsEquivalent ( const MSObservationColumns obsCol,
const uInt rowi,
const uInt rowj 
) [private]
void casa::MSConcat::setRespectForFieldName ( const Bool  respectFieldName)
void casa::MSConcat::setTolerance ( Quantum< Double > &  freqTol,
Quantum< Double > &  dirTol 
)
void casa::MSConcat::setWeightScale ( const Float  weightScale)
Bool casa::MSConcat::sourceRowsEquivalent ( const MSSourceColumns sourceCol,
const uInt rowi,
const uInt rowj,
const Bool  dontTestDirection = False 
) [private]
void casa::MSConcat::virtualconcat ( MeasurementSet otherMS,
const Bool  checkShapeAndCateg = True,
const String obsidAndScanTableName = "" 
)

Member Data Documentation

Definition at line 164 of file MSConcat.h.

Definition at line 165 of file MSConcat.h.

Definition at line 162 of file MSConcat.h.

Definition at line 161 of file MSConcat.h.

Definition at line 163 of file MSConcat.h.

Definition at line 153 of file MSConcat.h.

Definition at line 150 of file MSConcat.h.

Definition at line 148 of file MSConcat.h.

Definition at line 149 of file MSConcat.h.

Definition at line 147 of file MSConcat.h.

Definition at line 152 of file MSConcat.h.

Definition at line 151 of file MSConcat.h.

Definition at line 157 of file MSConcat.h.

Definition at line 158 of file MSConcat.h.

Definition at line 155 of file MSConcat.h.

Definition at line 154 of file MSConcat.h.

Definition at line 156 of file MSConcat.h.

Definition at line 159 of file MSConcat.h.


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