casacore::MSConcat Class Reference

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

#include <MSConcat.h>

Inheritance diagram for casacore::MSConcat:
casacore::MSColumns casacore::MSMainColumns casacore::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< uInt > copyAntennaAndFeed (const MSAntenna &otherAnt, const MSFeed &otherFeed)
 by default remove redundant observation table rows
Block< uInt > copyState (const MSState &otherState)
Block< uInt > copyField (const MeasurementSet &otherms)
Block< uInt > copySpwAndPol (const MSSpectralWindow &otherSpw, const MSPolarization &otherPol, const MSDataDescription &otherDD)
Bool copySource (const MeasurementSet &otherms)
Bool updateSource ()
Bool updateSource2 ()
Bool sourceRowsEquivalent (const MSSourceColumns &sourceCol, const uInt &rowi, const uInt &rowj, const Bool dontTestDirection=False, const Bool dontTestTransAndRest=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< Double > itsFreqTol
Quantum< Double > itsDirTol
Float itsWeightScale
Bool itsRespectForFieldName
Vector< Bool > itsChanReversed
SimpleOrderedMap< Int, Int > newSourceIndex_p
SimpleOrderedMap< Int, Int > newSourceIndex2_p
SimpleOrderedMap< Int, Int > newSPWIndex_p
SimpleOrderedMap< Int, Int > newObsIndexA_p
SimpleOrderedMap< Int, Int > newObsIndexB_p
SimpleOrderedMap< Int, Int > otherObsIdsWithCounterpart_p
SimpleOrderedMap< Int, Int > solSystObjects_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

Review Status

Date Reviewed:
yyyy/mm/dd

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

casacore::MSConcat::MSConcat ( MeasurementSet &  ms  ) 
casacore::MSConcat::MSConcat (  )  [private]

if their name is different


Member Function Documentation

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

by default remove redundant observation table rows

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

Member Data Documentation

Definition at line 167 of file MSConcat.h.

Definition at line 168 of file MSConcat.h.

Definition at line 165 of file MSConcat.h.

Definition at line 164 of file MSConcat.h.

Definition at line 166 of file MSConcat.h.

Definition at line 155 of file MSConcat.h.

Definition at line 152 of file MSConcat.h.

Definition at line 150 of file MSConcat.h.

Definition at line 151 of file MSConcat.h.

Definition at line 149 of file MSConcat.h.

Definition at line 154 of file MSConcat.h.

Definition at line 153 of file MSConcat.h.

Definition at line 159 of file MSConcat.h.

Definition at line 160 of file MSConcat.h.

Definition at line 157 of file MSConcat.h.

Definition at line 156 of file MSConcat.h.

Definition at line 158 of file MSConcat.h.

Definition at line 161 of file MSConcat.h.

Definition at line 162 of file MSConcat.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1