casa::CalCache Class Reference

#include <CalCache.h>

Inheritance diagram for casa::CalCache:
casa::PlotMSCacheBase

List of all members.

Public Member Functions

 CalCache (PlotMSApp *parent)
 Constructor which takes parent PlotMS.
virtual ~CalCache ()
 Destructor.
PlotMSCacheBase::Type cacheType () const
 Identify myself.
Bool parsAreComplex ()
 Is the underlying table complex?
Matrix< Int > & chanAveBounds (Int spw)
 Access to channel averaging bounds.
virtual String polname (Int ipol)
 ...not yet CAL-specific.
void setFilename (String filename)
 given filename, get cal type

Protected Member Functions

virtual void loadIt (vector< PMS::Axis > &loadAxes, vector< PMS::DataColumn > &loadData, ThreadCommunication *thread=NULL)
 CAL-specific loadIt method.

Private Member Functions

 CalCache (const CalCache &)
 Forbid copy for now.
void setUpCalIter (const String &calname, PlotMSSelection &selection, Bool readonly=True, Bool chanselect=True, Bool corrselect=True)
 Setup the CalIter.
void countChunks (ROCTIter &ci, ThreadCommunication *thread)
 Count the chunks required in the cache.
void loadCalChunks (ROCTIter &ci, const vector< PMS::Axis > loadAxes, ThreadCommunication *thread)
 Trap attempt to use to much memory (too many points) void trapExcessVolume(map<PMS::Axis,Bool> pendingLoadAxes);.
void loadCalAxis (ROCTIter &cti, Int chunk, PMS::Axis axis, String pol)
 Loads the specific axis/metadata into the cache using the given VisBuffer.
Slice getParSlice (String axis, String polnSel)
 Check axis and slice param column appropriately.
String toVisCalAxis (PMS::Axis axis)
 Get axis string for VisCal Slice code.
void checkRatioArray (Array< Float > &array, Int chunk)
 Check for divide-by-zero (=inf); set to 1.0 and flag it.
virtual void flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag, PlotMSIndexer *indexer, int index)
 Set flags in the CalTable.

Private Attributes

Vector< Matrix< Int > > chanAveBounds_p
 A container for channel averaging bounds.
Vector< Int > nVBPerAve_
 Provisional flagging helpers.
String basis_
 The polarization basis.
Bool divZero_
 Had to adjust for divide-by-zero in ratio plot (checkRatioArray).
ROCTIterci_p
 VisIterator pointer.
CTIterwci_p
Bool parsAreComplex_
 Is parameter column complex?

Friends

class PlotMSIndexer
 Friend class declarations.

Detailed Description

Definition at line 49 of file CalCache.h.


Constructor & Destructor Documentation

casa::CalCache::CalCache ( PlotMSApp parent  ) 

Constructor which takes parent PlotMS.

virtual casa::CalCache::~CalCache (  )  [virtual]

Destructor.

casa::CalCache::CalCache ( const CalCache  )  [private]

Forbid copy for now.


Member Function Documentation

PlotMSCacheBase::Type casa::CalCache::cacheType (  )  const [inline, virtual]

Identify myself.

Implements casa::PlotMSCacheBase.

Definition at line 63 of file CalCache.h.

References casa::PlotMSCacheBase::CAL.

Matrix<Int>& casa::CalCache::chanAveBounds ( Int  spw  )  [inline]

Access to channel averaging bounds.

Definition at line 69 of file CalCache.h.

References chanAveBounds_p.

void casa::CalCache::checkRatioArray ( Array< Float > &  array,
Int  chunk 
) [private]

Check for divide-by-zero (=inf); set to 1.0 and flag it.

void casa::CalCache::countChunks ( ROCTIter ci,
ThreadCommunication thread 
) [private]

Count the chunks required in the cache.

virtual void casa::CalCache::flagToDisk ( const PlotMSFlagging flagging,
Vector< Int > &  chunks,
Vector< Int > &  relids,
Bool  flag,
PlotMSIndexer indexer,
int  index 
) [private, virtual]

Set flags in the CalTable.

Implements casa::PlotMSCacheBase.

Slice casa::CalCache::getParSlice ( String  axis,
String  polnSel 
) [private]

Check axis and slice param column appropriately.

void casa::CalCache::loadCalAxis ( ROCTIter cti,
Int  chunk,
PMS::Axis  axis,
String  pol 
) [private]

Loads the specific axis/metadata into the cache using the given VisBuffer.

void casa::CalCache::loadCalChunks ( ROCTIter ci,
const vector< PMS::Axis >  loadAxes,
ThreadCommunication thread 
) [private]

Trap attempt to use to much memory (too many points) void trapExcessVolume(map<PMS::Axis,Bool> pendingLoadAxes);.

Loop over VisIter, filling the cache

virtual void casa::CalCache::loadIt ( vector< PMS::Axis > &  loadAxes,
vector< PMS::DataColumn > &  loadData,
ThreadCommunication thread = NULL 
) [protected, virtual]

CAL-specific loadIt method.

Bool casa::CalCache::parsAreComplex (  )  [inline]

Is the underlying table complex?

Definition at line 66 of file CalCache.h.

References parsAreComplex_.

virtual String casa::CalCache::polname ( Int  ipol  )  [virtual]

...not yet CAL-specific.

.. (or ever?) Set up indexing for the plot void setUpIndexer(PMS::Axis iteraxis=PMSSCAN, Bool globalXRange=False, Bool globalYRange=False);

Convert poln index->name and name->index

Implements casa::PlotMSCacheBase.

void casa::CalCache::setFilename ( String  filename  )  [virtual]

given filename, get cal type

Implements casa::PlotMSCacheBase.

void casa::CalCache::setUpCalIter ( const String &  calname,
PlotMSSelection selection,
Bool  readonly = True,
Bool  chanselect = True,
Bool  corrselect = True 
) [private]

Setup the CalIter.

String casa::CalCache::toVisCalAxis ( PMS::Axis  axis  )  [private]

Get axis string for VisCal Slice code.


Friends And Related Function Documentation

friend class PlotMSIndexer [friend]

Friend class declarations.

Reimplemented from casa::PlotMSCacheBase.

Definition at line 52 of file CalCache.h.


Member Data Documentation

String casa::CalCache::basis_ [private]

The polarization basis.

Definition at line 138 of file CalCache.h.

Vector<Matrix<Int> > casa::CalCache::chanAveBounds_p [private]

A container for channel averaging bounds.

Definition at line 132 of file CalCache.h.

Referenced by chanAveBounds().

VisIterator pointer.

Definition at line 143 of file CalCache.h.

Bool casa::CalCache::divZero_ [private]

Had to adjust for divide-by-zero in ratio plot (checkRatioArray).

Definition at line 140 of file CalCache.h.

Vector<Int> casa::CalCache::nVBPerAve_ [private]

Provisional flagging helpers.

Definition at line 135 of file CalCache.h.

Is parameter column complex?

Definition at line 147 of file CalCache.h.

Referenced by parsAreComplex().

Definition at line 144 of file CalCache.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