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

VisBuffers encapsulate one chunk of visibility data for processing. More...

#include <VisBuffer.h>

Inheritance diagram for casa::VisBuffer:
casa::CalVisBuffer casa::vi::VisBuffer2Adapter casa::VisBufferAsync casa::VisBufferAsyncWrapper

List of all members.

Public Member Functions

 VisBuffer ()
 Create empty VisBuffer you can assign to or attach.
 VisBuffer (ROVisibilityIterator &iter)
 Construct VisBuffer for a particular VisibilityIterator The buffer will remain synchronized with the iterator.
 VisBuffer (const VisBuffer &vb)
 Copy construct, looses synchronization with iterator: only use buffer for current iteration (or reattach).
virtual ~VisBuffer ()
 Destructor (detaches from VisIter)
virtual VisBufferoperator= (const VisBuffer &vb)
 Assignment, loses synchronization with iterator: only use buffer for current iteration (or reattach)
virtual VisBufferassign (const VisBuffer &vb, Bool copy=True)
 Assignment, optionally without copying the data across; with copy=True this is identical to normal assignment operator.
virtual VisBufferclone () const
VisBufferoperator-= (const VisBuffer &vb)
 subtraction: return the difference of the visibilities, flags of this and other are or-ed.
virtual void attachToVisIter (ROVisibilityIterator &iter)
 Attach to a VisIter.
virtual void detachFromVisIter ()
virtual void invalidate ()
 Invalidate the cache.
virtual IntnCorr ()
 Access functions.
virtual Int nCorr () const
virtual IntnChannel ()
virtual Int nChannel () const
virtual Vector< Int > & channel ()
virtual const Vector< Int > & channel () const
virtual IntnRow ()
 virtual Int & nCat() { return nCatOK_p ? nCat_p : fillnCat(); } virtual Int nCat() const { return This->nCat(); }
virtual Int nRow () const
virtual Int nRowChunk () const
virtual Vector< Int > & antenna1 ()
virtual const Vector< Int > & antenna1 () const
virtual Vector< Int > & antenna2 ()
virtual const Vector< Int > & antenna2 () const
virtual Vector< Int > & feed1 ()
virtual const Vector< Int > & feed1 () const
virtual Vector< Int > & feed2 ()
virtual const Vector< Int > & feed2 () const
virtual void dirtyComponentsAdd (const VbDirtyComponents &additionalDirtyComponents)
virtual void dirtyComponentsAdd (VisBufferComponents::EnumType component)
virtual void dirtyComponentsClear ()
virtual VbDirtyComponents dirtyComponentsGet () const
virtual void dirtyComponentsSet (const VbDirtyComponents &dirtyComponents)
virtual void dirtyComponentsSet (VisBufferComponents::EnumType component)
virtual Bool fetch (const asyncio::PrefetchColumns *pfc)
virtual Vector< Float > & feed1_pa ()
 feed1_pa() and feed2_pa() return an array of parallactic angles (each corresponds to the first receptor of the feed) one for each row in the current buffer.
virtual const Vector< Float > & feed1_pa () const
virtual Vector< Float > & feed2_pa ()
virtual const Vector< Float > & feed2_pa () const
virtual Vector< SquareMatrix
< Complex, 2 > > & 
CJones ()
virtual const Vector
< SquareMatrix< Complex, 2 > > & 
CJones () const
virtual Vector< Floatfeed_pa (Double time) const
 Note that feed_pa is a function instead of a cached value.
virtual Vector< MDirection > & direction1 ()
 direction1() and direction2() return arrays of directions where the first and the second antenna/feed are pointed to.
virtual const Vector
< MDirection > & 
direction1 () const
virtual Vector< MDirection > & direction2 ()
virtual const Vector
< MDirection > & 
direction2 () const
virtual Float parang0 (Double time) const
 NOMINAL parallactic angle (feed p.a.
virtual Vector< Floatparang (Double time) const
virtual MDirection azel0 (Double time) const
 Note that azel is a function instead of a cached value.
virtual Vector< Double > & azel0Vec (Double time, Vector< Double > &azelVec) const
virtual Vector< MDirectionazel (Double time) const
virtual Matrix< Double > & azelMat (Double time, Matrix< Double > &azelMat) const
virtual Double hourang (Double time) const
 Hour angle for specified time.
virtual Int fieldId () const
virtual IntfieldIdRef ()
virtual IntarrayIdRef ()
virtual Int arrayId () const
virtual Matrix< Bool > & flag ()
 Return flag for each channel & row.
virtual const Matrix< Bool > & flag () const
virtual Cube< Bool > & flagCube ()
 Return flag for each polarization, channel and row.
virtual const Cube< Bool > & flagCube () const
virtual Vector< Bool > & flagRow ()
virtual const Vector< Bool > & flagRow () const
virtual Array< Bool > & flagCategory ()
 Return flags for each polarization, channel, category, and row.
virtual const Array< Bool > & flagCategory () const
virtual Vector< Int > & scan ()
virtual const Vector< Int > & scan () const
virtual Int scan0 ()
 scalar version for convenience, when scan known constant for entire iteration/buffer.
virtual Vector< Int > & processorId ()
virtual const Vector< Int > & processorId () const
virtual Vector< Int > & observationId ()
virtual const Vector< Int > & observationId () const
virtual Vector< Int > & stateId ()
virtual const Vector< Int > & stateId () const
virtual Vector< Double > & frequency ()
 Gets SPECTRAL_WINDOW/CHAN_FREQ (in Hz, acc.
virtual const Vector< Double > & frequency () const
virtual void lsrFrequency (const Int &spw, Vector< Double > &freq, Bool &convert, const Bool ignoreconv=False) const
 virtual Vector<Double>& lsrFrequency() { return lsrFrequencyOK_p ? lsrFrequency_p : fillLSRFreq(); } virtual const Vector<Double>& lsrFrequency() const { return This->lsrFrequency(); }
virtual Int numberCoh () const
virtual MDirectionphaseCenter ()
virtual MDirection phaseCenter () const
virtual Int polFrame () const
virtual Vector< Int > & corrType ()
virtual const Vector< Int > & corrType () const
virtual Vector< Float > & sigma ()
virtual const Vector< Float > & sigma () const
virtual Matrix< Float > & sigmaMat ()
virtual const Matrix< Float > & sigmaMat () const
virtual IntspectralWindow ()
virtual Int spectralWindow () const
virtual Int polarizationId () const
virtual IntdataDescriptionIdRef ()
virtual Int dataDescriptionId () const
virtual Vector< Double > & time ()
virtual const Vector< Double > & time () const
virtual Vector< Double > & timeCentroid ()
virtual const Vector< Double > & timeCentroid () const
virtual Vector< Double > & timeInterval ()
virtual const Vector< Double > & timeInterval () const
virtual Vector< Double > & exposure ()
virtual const Vector< Double > & exposure () const
virtual Vector< RigidVector
< Double, 3 > > & 
uvw ()
virtual const Vector
< RigidVector< Double, 3 > > & 
uvw () const
virtual Matrix< Double > & uvwMat ()
virtual const Matrix< Double > & uvwMat () const
virtual Matrix< CStokesVector > & visibility ()
virtual const Matrix
< CStokesVector > & 
visibility () const
virtual Matrix< CStokesVector > & modelVisibility ()
virtual const Matrix
< CStokesVector > & 
modelVisibility () const
virtual Matrix< CStokesVector > & correctedVisibility ()
virtual const Matrix
< CStokesVector > & 
correctedVisibility () const
virtual Cube< Complex > & visCube ()
virtual const Cube< Complex > & visCube () const
virtual Cube< Complex > & modelVisCube ()
virtual Cube< Complex > & modelVisCube (const Bool &matchVisCubeShape)
virtual const Cube< Complex > & modelVisCube () const
virtual Cube< Complex > & correctedVisCube ()
virtual const Cube< Complex > & correctedVisCube () const
Cube< Complex > & dataCube (const MS::PredefinedColumns whichcol=MS::DATA)
 Return visCube(), modelVisCube(), or correctedVisCube(), according to whichcol.
const Cube< Complex > & dataCube (const MS::PredefinedColumns whichcol=MS::DATA) const
virtual Cube< Float > & floatDataCube ()
virtual const Cube< Float > & floatDataCube () const
virtual Vector< Float > & weight ()
 Returns the weights for each row averaged over the parallel hand correlations.
virtual const Vector< Float > & weight () const
virtual Matrix< Float > & weightMat ()
 Returns the nPol_p x curNumRow_p weight matrix.
virtual const Matrix< Float > & weightMat () const
virtual Bool existsWeightSpectrum () const
 Is a valid WEIGHT_SPECTRUM available?
virtual Cube< Float > & weightSpectrum ()
virtual const Cube< Float > & weightSpectrum () const
virtual Matrix< Float > & imagingWeight ()
virtual const Matrix< Float > & imagingWeight () const
virtual Cube< Float > & weightCube ()
 virtual Matrix<Float>& imagingWeight() { return imagingWeightOK_p ? imagingWeight_p : fillImagingWeight(); } virtual const Matrix<Float>& imagingWeight() const { return This->imagingWeight(); }
virtual Vector< IntvecIntRange (const MSCalEnums::colDef &calEnum) const
 Utility functions to provide coordinate or column ranges of the data in the VisBuffer.
virtual Vector< IntantIdRange () const
 Antenna id.
virtual Bool timeRange (MEpoch &rTime, MVEpoch &rTimeEP, MVEpoch &rInterval) const
 Time range.
virtual Vector< uInt > & rowIds ()
 Return the row Ids from the original ms.
virtual const Vector< uInt > & rowIds () const
virtual void freqAverage ()
 Frequency average the buffer (visibility() column only)
void freqAveCubes ()
 Frequency average the buffer (visCube and [if present] modelVisCube)
void channelAve (const Matrix< Int > &chanavebounds)
 Average channel axis according to chanavebounds, for whichever of DATA, MODEL_DATA, CORRECTED_DATA, FLOAT_DATA, FLAG, and WEIGHT_SPECTRUM are present.
template<class T >
void chanAveVisCube (Cube< T > &data, Int nChanOut)
 Average channel axis by factor.
template<class T >
void chanAccCube (Cube< T > &data, Int nChanOut)
 Accumulate channel axis by factor, without applying WEIGHT_SPECTRUM even if it is present.
virtual void chanAveFlagCube (Cube< Bool > &flagcube, const Int nChanOut, const Bool restoreWeightSpectrum=True)
 This defaults to no conceptual side effects, but usually it is more efficient to let it leave weightSpectrum() in a channel averaged state.
void chanAveFlagCategory (Array< Bool > &flagcat, const Int nChanOut)
 Doesn't do anything if flagcat is degenerate.
virtual void formStokes ()
 Form Stokes parameters from correlations (these are preliminary versions)
virtual void formStokesWeightandFlag ()
virtual void formStokes (Cube< Complex > &vis)
virtual void formStokes (Cube< Float > &fcube)
virtual void sortCorr ()
 Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations--use with care!)
virtual void unSortCorr ()
virtual void normalize (const Bool &phaseOnly=False)
 Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp)
virtual void resetWeightMat ()
 Fill weightMat according to sigma column.
virtual void phaseCenterShift (const Vector< Double > &phase)
 Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres)
virtual void phaseCenterShift (Double dx, Double dy)
 Rotate visibility phase for phase center offsets (arcsecs)
virtual void updateCoordInfo (const VisBuffer *vb=NULL, const Bool dirDependent=True)
 Update coordinate info - useful for copied VisBuffers that need to retain some state for later reference.
void copyCoordInfo (const VisBuffer &other, Bool force=False)
virtual void setVisCube (Complex c)
 Set the visibility to a constant, note that this only changes the buffer, no values are written back to tables from here.
virtual void setModelVisCube (Complex c)
virtual void setCorrectedVisCube (Complex c)
virtual void setVisCube (const Cube< Complex > &vis)
 Set the visibility, note that this only changes the buffer, no values are written back to tables from here.
virtual void setModelVisCube (const Cube< Complex > &vis)
virtual void setCorrectedVisCube (const Cube< Complex > &vis)
virtual void setFloatDataCube (const Cube< Float > &fcube)
 Like the above, but for FLOAT_DATA, keeping it as real floats.
virtual void setModelVisCube (const Vector< Float > &stokes)
 Set model according to a Stokes vector.
virtual void refModelVis (const Matrix< CStokesVector > &mvis)
 Reference external model visibilities.
virtual void removeScratchCols ()
 Remove scratch cols data from vb.
virtual const ROMSColumnsmsColumns () const
 Access the current ROMSColumns object via VisIter.
virtual Int numberAnt () const
virtual void allSelectedSpectralWindows (Vector< Int > &spws, Vector< Int > &nvischan)
 Get all selected spectral windows not just the one in the actual buffer.
virtual void getChannelSelection (Block< Vector< Int > > &blockNGroup, Block< Vector< Int > > &blockStart, Block< Vector< Int > > &blockWidth, Block< Vector< Int > > &blockIncr, Block< Vector< Int > > &blockSpw) const
void allSelectedSpectralWindows (Vector< Int > &spws, Vector< Int > &nvischan) const
virtual Int msId () const
 Return the actual msid, useful if using multiple ms to monitor which ms in the list is being dealt with.
virtual Bool newMS () const
 checked if the ms has changed since the last chunk processed
virtual String msName (Bool stripPath=False) const
 get the name of the ms the buffer is at empty string if no visiter is attached
virtual Bool newArrayId () const
virtual Bool newFieldId () const
virtual Bool newSpectralWindow () const

Protected Member Functions

virtual Bool checkMSId ()
 
     

virtual void checkVisIter (const char *func, const char *file, int line, const char *extra="") const
virtual void copyCache (const VisBuffer &other, Bool force)
virtual void copyMsInfo (Int &msID, Bool &MsOk_p, Bool &newMs) const
virtual const Matrix< Float > & imagingWeight (const VisImagingWeight &weightGenerator) const
virtual Int getOldMsId () const
virtual ROVisibilityIteratorgetVisibilityIterator () const
template<typename Coord >
void updateCoord (const VisBuffer *other, Bool otherOk, const Coord &(VisBuffer::*getCoord)() const, Coord &coord, Bool &coordOk)
template<typename Scalar >
void updateCoordS (const VisBuffer *other, Bool otherOk, Scalar(VisBuffer::*getCoord)() const, Scalar &coord, Bool &coordOk)

Private Member Functions

virtual void validate ()
 validate the cache
void checkVisIterBase (const char *func, const char *file, int line, const char *extra="") const
virtual void setAllCacheStatuses (bool status)
virtual Bool nonCanonCorr ()
virtual Vector< Intunique (const Vector< Int > &indices) const
 Filter index arrays for unique elements.
virtual Vector< Int > & fillAnt1 ()
 +-------------------------------------------------+ | Cache Declarations (fillers, statuses and data) | +-------------------------------------------------+
virtual Vector< Int > & fillAnt2 ()
virtual IntfillArrayId ()
virtual Vector< Int > & fillChannel ()
 virtual Matrix<Int>& fillChanAveBounds();
virtual Vector< SquareMatrix
< Complex, 2 > > & 
fillCjones ()
virtual Vector< Int > & fillCorrType ()
virtual IntfillDataDescriptionId ()
virtual Vector< MDirection > & fillDirection1 ()
virtual Vector< MDirection > & fillDirection2 ()
virtual Vector< Double > & fillExposure ()
virtual Vector< Int > & fillFeed1 ()
virtual Vector< Float > & fillFeed1_pa ()
virtual Vector< Int > & fillFeed2 ()
virtual Vector< Float > & fillFeed2_pa ()
virtual IntfillFieldId ()
virtual Matrix< Bool > & fillFlag ()
virtual Array< Bool > & fillFlagCategory ()
virtual Cube< Bool > & fillFlagCube ()
virtual Vector< Bool > & fillFlagRow ()
virtual Cube< Float > & fillFloatDataCube ()
virtual Vector< Double > & fillFreq ()
virtual IntfillnChannel ()
 virtual Matrix<Float>& fillImagingWeight(); virtual Vector<Double>& fillLSRFreq();
virtual IntfillnCorr ()
virtual IntfillnRow ()
 virtual Int & fillnCat();
virtual Vector< Int > & fillObservationId ()
virtual MDirectionfillPhaseCenter ()
virtual IntfillPolFrame ()
virtual Vector< Int > & fillProcessorId ()
virtual Vector< Int > & fillScan ()
virtual Vector< Float > & fillSigma ()
virtual Matrix< Float > & fillSigmaMat ()
virtual IntfillSpW ()
virtual Vector< Int > & fillStateId ()
virtual Vector< Double > & fillTime ()
virtual Vector< Double > & fillTimeCentroid ()
virtual Vector< Double > & fillTimeInterval ()
virtual Vector< RigidVector
< Double, 3 > > & 
filluvw ()
virtual Matrix< Double > & filluvwMat ()
virtual Matrix< CStokesVector > & fillVis (VisibilityIterator::DataColumn whichOne)
virtual Cube< Complex > & fillVisCube (VisibilityIterator::DataColumn whichOne)
virtual Vector< Float > & fillWeight ()
virtual Matrix< Float > & fillWeightMat ()
virtual Cube< Float > & fillWeightSpectrum ()
 CacheStatus (antenna1)
 Define the cache statuses.
 CacheStatus (antenna2)
 CacheStatus (arrayId)
 CacheStatus (channel)
 CacheStatus (cjones)
 CacheStatus (correctedVisCube)
 CacheStatus (correctedVisibility)
 CacheStatus (corrType)
 CacheStatus (dataDescriptionId)
 CacheStatus (direction1)
 CacheStatus (direction2)
 CacheStatus (exposure)
 CacheStatus (feed1_pa)
 CacheStatus (feed1)
 CacheStatus (feed2_pa)
 CacheStatus (feed2)
 CacheStatus (fieldId)
 CacheStatus (flagCategory)
 CacheStatus (flagCube)
 CacheStatus (flag)
 CacheStatus (flagRow)
 CacheStatus (floatDataCube)
 CacheStatus (frequency)
 CacheStatus (imagingWeight)
 CacheStatus (modelVisCube)
 CacheStatus (modelVisibility)
 CacheStatus (ms)
 CacheStatus (nChannel)
 CacheStatus (nCorr)
 CacheStatus (nRow)
 CacheStatus (observationId)
 CacheStatus (phaseCenter)
 CacheStatus (polFrame)
 CacheStatus (processorId)
 CacheStatus (rowIds)
 CacheStatus (scan)
 CacheStatus (sigmaMat)
 CacheStatus (sigma)
 CacheStatus (spectralWindow)
 CacheStatus (stateId)
 CacheStatus (timeCentroid)
 CacheStatus (timeInterval)
 CacheStatus (time)
 CacheStatus (uvwMat)
 CacheStatus (uvw)
 CacheStatus (visCube)
 CacheStatus (visibility)
 CacheStatus (weightMat)
 CacheStatus (weight)
 CacheStatus (weightSpectrum)

Static Private Member Functions

template<typename T >
static void cacheCopyArray (Bool &newStatus, Bool oldStatus, T &newCache, const VisBuffer &other, const T &(VisBuffer::*oldCache)() const, Bool force)
template<typename T >
static void cacheCopyNormal (Bool &newStatus, Bool oldStatus, T &newCache, const VisBuffer &other, T(VisBuffer::*oldCache)() const, Bool force)

Private Attributes

Bool corrSorted_p
VbDirtyComponents dirtyComponents_p
Int lastPointTableRow_p
Int oldMSId_p
VisBufferThis
Bool twoWayConnection_p
ROVisibilityIteratorvisIter_p
VisModelData visModelData_p
Bool newMS_p
Vector< Intantenna1_p
 Cached values (alphabetical order)
Vector< Intantenna2_p
Int arrayId_p
Matrix< IntchanAveBounds_p
Vector< Intchannel_p
Vector< SquareMatrix< Complex, 2 > > cjones_p
Cube< Complex > correctedVisCube_p
Matrix< CStokesVectorcorrectedVisibility_p
Vector< IntcorrType_p
Int dataDescriptionId_p
Vector< MDirectiondirection1_p
Vector< MDirectiondirection2_p
Vector< Doubleexposure_p
Vector< Intfeed1_p
Vector< Floatfeed1_pa_p
Vector< Intfeed2_p
Vector< Floatfeed2_pa_p
Int fieldId_p
Matrix< Boolflag_p
Array< BoolflagCategory_p
Cube< BoolflagCube_p
Vector< BoolflagRow_p
Cube< FloatfloatDataCube_p
Vector< Doublefrequency_p
Matrix< FloatimagingWeight_p
Cube< Complex > modelVisCube_p
 Vector<Double> lsrFrequency_p;.
Matrix< CStokesVectormodelVisibility_p
Int nChannel_p
Int nCorr_p
Int nRow_p
 Int nCat_p;.
Vector< IntobservationId_p
MDirection phaseCenter_p
Int polFrame_p
Vector< IntprocessorId_p
Vector< uIntrowIds_p
Vector< Intscan_p
Vector< Floatsigma_p
Matrix< FloatsigmaMat_p
Int spectralWindow_p
Vector< IntstateId_p
Vector< Doubletime_p
Vector< DoubletimeCentroid_p
Vector< DoubletimeInterval_p
Vector< RigidVector< Double, 3 > > uvw_p
Matrix< DoubleuvwMat_p
Cube< Complex > visCube_p
Matrix< CStokesVectorvisibility_p
Vector< Floatweight_p
Cube< FloatweightCube_p
Matrix< FloatweightMat_p
Cube< FloatweightSpectrum_p

Friends

class asyncio::VLAT
class VisBufferAsync
class VisBufferAsyncWrapper
class ViReadImplAsync

Detailed Description

VisBuffers encapsulate one chunk of visibility data for processing.

Intended use:

Public interface

Prerequisite

Etymology

VisBuffer is a buffer for visibility data

Synopsis

This class contains 'one iteration' of the VisibilityIterator It is a modifiable buffer of values to which calibration and averaging can be applied. This allows processing of the data in larger blocks, avoiding some overheads for processing per visibility point or spectrum.

See MeasurementEquations for more details on how the VisBuffer is to be used.

When the user intends to allow asynchronous I/O they will need to use the VisBufferAsync and VisBufferAsyncWrapper classes; these are publicly derived from VisBuffer. Normally, the user should not explicitly use these classes but should use the helper class VisBufferAutoPtr which will ensure that the appropriate class is used.

To Do

Definition at line 153 of file VisBuffer.h.


Constructor & Destructor Documentation

Create empty VisBuffer you can assign to or attach.

Construct VisBuffer for a particular VisibilityIterator The buffer will remain synchronized with the iterator.

Copy construct, looses synchronization with iterator: only use buffer for current iteration (or reattach).

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

Destructor (detaches from VisIter)


Member Function Documentation

virtual void casa::VisBuffer::allSelectedSpectralWindows ( Vector< Int > &  spws,
Vector< Int > &  nvischan 
) [inline, virtual]

Get all selected spectral windows not just the one in the actual buffer.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Definition at line 786 of file VisBuffer.h.

References casa::ROVisibilityIterator::allSelectedSpectralWindows(), and visIter_p.

Referenced by allSelectedSpectralWindows().

void casa::VisBuffer::allSelectedSpectralWindows ( Vector< Int > &  spws,
Vector< Int > &  nvischan 
) const [inline]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 797 of file VisBuffer.h.

References allSelectedSpectralWindows(), and This.

virtual Vector<Int>& casa::VisBuffer::antenna1 ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 252 of file VisBuffer.h.

References antenna1_p, and fillAnt1().

Referenced by antenna1().

virtual const Vector<Int>& casa::VisBuffer::antenna1 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 255 of file VisBuffer.h.

References antenna1(), and This.

virtual Vector<Int>& casa::VisBuffer::antenna2 ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 259 of file VisBuffer.h.

References antenna2_p, and fillAnt2().

Referenced by antenna2().

virtual const Vector<Int>& casa::VisBuffer::antenna2 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 262 of file VisBuffer.h.

References antenna2(), and This.

virtual Vector<Int> casa::VisBuffer::antIdRange ( ) const [virtual]

Antenna id.

range (includes both ANTENNA1 and ANTENNA2 columns)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Int casa::VisBuffer::arrayId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 363 of file VisBuffer.h.

References arrayId_p, fillArrayId(), and This.

virtual Int& casa::VisBuffer::arrayIdRef ( ) [inline, virtual]

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 359 of file VisBuffer.h.

References arrayId_p, fillArrayId(), and This.

virtual VisBuffer& casa::VisBuffer::assign ( const VisBuffer vb,
Bool  copy = True 
) [virtual]

Assignment, optionally without copying the data across; with copy=True this is identical to normal assignment operator.

Reimplemented in casa::VisBufferAsyncWrapper, casa::CalVisBuffer, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Referenced by casa::LFBase::runMethod().

virtual void casa::VisBuffer::attachToVisIter ( ROVisibilityIterator iter) [virtual]

Attach to a VisIter.

Detaches itself first if already attached to a VisIter. Will remain synchronized with iterator.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::VisBufferAsync.

virtual Vector<MDirection> casa::VisBuffer::azel ( Double  time) const [virtual]
virtual MDirection casa::VisBuffer::azel0 ( Double  time) const [virtual]

Note that azel is a function instead of a cached value.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual Vector<Double>& casa::VisBuffer::azel0Vec ( Double  time,
Vector< Double > &  azelVec 
) const [virtual]
virtual Matrix<Double>& casa::VisBuffer::azelMat ( Double  time,
Matrix< Double > &  azelMat 
) const [virtual]
template<typename T >
static void casa::VisBuffer::cacheCopyArray ( Bool newStatus,
Bool  oldStatus,
T &  newCache,
const VisBuffer other,
const T &(VisBuffer::*)() const  oldCache,
Bool  force 
) [inline, static, private]

Leave things unchanged if the old status is false. This will often leave the value with an empty data structure and an OK status which is needed in many cases.

For copying Array<T> derived objects since the assign operator doesn't work for these.

Definition at line 874 of file VisBuffer.h.

template<typename T >
static void casa::VisBuffer::cacheCopyNormal ( Bool newStatus,
Bool  oldStatus,
T &  newCache,
const VisBuffer other,
T(VisBuffer::*)() const  oldCache,
Bool  force 
) [inline, static, private]

Leave things unchanged if the old status is false. This will often leave the value with an empty data structure and an OK status which is needed in many cases.

For copying "normal" cache status and values. Normal means the assign operator works (which it doesn't for classes based on Array<T>)

Definition at line 896 of file VisBuffer.h.

Define the cache statuses.

For example, CacheStatus (antenna1) defines:

virtual Bool antenna1OK () const { return antenna1OK_p;}

and

Bool antenna1OK_p;

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

casa::VisBuffer::CacheStatus ( cjones  ) [private]

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

casa::VisBuffer::CacheStatus ( ms  ) [private]

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

Reimplemented in casa::VisBufferAsyncWrapper.

template<class T >
void casa::VisBuffer::chanAccCube ( Cube< T > &  data,
Int  nChanOut 
)

Accumulate channel axis by factor, without applying WEIGHT_SPECTRUM even if it is present.

It is primarily intended for averaging WEIGHT_SPECTRUM itself.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

void casa::VisBuffer::chanAveFlagCategory ( Array< Bool > &  flagcat,
const Int  nChanOut 
)

Doesn't do anything if flagcat is degenerate.

Reimplemented in casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::chanAveFlagCube ( Cube< Bool > &  flagcube,
const Int  nChanOut,
const Bool  restoreWeightSpectrum = True 
) [virtual]

This defaults to no conceptual side effects, but usually it is more efficient to let it leave weightSpectrum() in a channel averaged state.

restoreWeightSpectrum has no effect if !existsWeightSpectrum().

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

template<class T >
void casa::VisBuffer::chanAveVisCube ( Cube< T > &  data,
Int  nChanOut 
)

Average channel axis by factor.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Vector<Int>& casa::VisBuffer::channel ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 216 of file VisBuffer.h.

References channel_p, and fillChannel().

Referenced by channel().

virtual const Vector<Int>& casa::VisBuffer::channel ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 219 of file VisBuffer.h.

References channel(), and This.

void casa::VisBuffer::channelAve ( const Matrix< Int > &  chanavebounds)

Average channel axis according to chanavebounds, for whichever of DATA, MODEL_DATA, CORRECTED_DATA, FLOAT_DATA, FLAG, and WEIGHT_SPECTRUM are present.

It will only treat the first 5 as present if they have already been loaded into the buffer!

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Bool casa::VisBuffer::checkMSId ( ) [protected, virtual]

     

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by msId(), and newMS().

virtual void casa::VisBuffer::checkVisIter ( const char *  func,
const char *  file,
int  line,
const char *  extra = "" 
) const [protected, virtual]

Reimplemented in casa::VisBufferAsync.

void casa::VisBuffer::checkVisIterBase ( const char *  func,
const char *  file,
int  line,
const char *  extra = "" 
) const [private]
virtual Vector<SquareMatrix<Complex, 2> >& casa::VisBuffer::CJones ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 308 of file VisBuffer.h.

References cjones_p, and fillCjones().

Referenced by CJones().

virtual const Vector<SquareMatrix<Complex, 2> >& casa::VisBuffer::CJones ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 311 of file VisBuffer.h.

References CJones(), and This.

virtual VisBuffer* casa::VisBuffer::clone ( ) const [virtual]

Reimplemented in casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::copyCache ( const VisBuffer other,
Bool  force 
) [protected, virtual]
void casa::VisBuffer::copyCoordInfo ( const VisBuffer other,
Bool  force = False 
)
virtual void casa::VisBuffer::copyMsInfo ( Int msID,
Bool MsOk_p,
Bool newMs 
) const [protected, virtual]
virtual Cube<Complex>& casa::VisBuffer::correctedVisCube ( ) [inline, virtual]
virtual const Cube<Complex>& casa::VisBuffer::correctedVisCube ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 601 of file VisBuffer.h.

References correctedVisCube(), and This.

virtual const Matrix<CStokesVector>& casa::VisBuffer::correctedVisibility ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 565 of file VisBuffer.h.

References correctedVisibility(), and This.

virtual Vector<Int>& casa::VisBuffer::corrType ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 468 of file VisBuffer.h.

References corrType_p, and fillCorrType().

Referenced by corrType().

virtual const Vector<Int>& casa::VisBuffer::corrType ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 471 of file VisBuffer.h.

References corrType(), and This.

Return visCube(), modelVisCube(), or correctedVisCube(), according to whichcol.

They throw an exception if whichcol is unsupported, but note the encouraged default. TODO: Optionally return DATA if whichcol is unavailable.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

const Cube<Complex>& casa::VisBuffer::dataCube ( const MS::PredefinedColumns  whichcol = MS::DATA) const
virtual Int casa::VisBuffer::dataDescriptionId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 501 of file VisBuffer.h.

References dataDescriptionId_p, fillDataDescriptionId(), and This.

virtual Int& casa::VisBuffer::dataDescriptionIdRef ( ) [inline, virtual]

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 498 of file VisBuffer.h.

References dataDescriptionId_p, fillDataDescriptionId(), and This.

virtual void casa::VisBuffer::detachFromVisIter ( ) [virtual]
virtual Vector<MDirection>& casa::VisBuffer::direction1 ( ) [inline, virtual]

direction1() and direction2() return arrays of directions where the first and the second antenna/feed are pointed to.

One value for each row in the current buffer.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 321 of file VisBuffer.h.

References direction1_p, and fillDirection1().

Referenced by direction1().

virtual const Vector<MDirection>& casa::VisBuffer::direction1 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 325 of file VisBuffer.h.

References direction1(), and This.

virtual Vector<MDirection>& casa::VisBuffer::direction2 ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 329 of file VisBuffer.h.

References direction2_p, and fillDirection2().

Referenced by direction2().

virtual const Vector<MDirection>& casa::VisBuffer::direction2 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 333 of file VisBuffer.h.

References direction2(), and This.

virtual void casa::VisBuffer::dirtyComponentsAdd ( const VbDirtyComponents additionalDirtyComponents) [virtual]
virtual void casa::VisBuffer::dirtyComponentsClear ( ) [virtual]
virtual void casa::VisBuffer::dirtyComponentsSet ( const VbDirtyComponents dirtyComponents) [virtual]
virtual Bool casa::VisBuffer::existsWeightSpectrum ( ) const [inline, virtual]

Is a valid WEIGHT_SPECTRUM available?

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 637 of file VisBuffer.h.

References casa::ROVisibilityIterator::existsWeightSpectrum(), and visIter_p.

virtual Vector<Double>& casa::VisBuffer::exposure ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 525 of file VisBuffer.h.

References exposure_p, and fillExposure().

Referenced by exposure().

virtual const Vector<Double>& casa::VisBuffer::exposure ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 528 of file VisBuffer.h.

References exposure(), and This.

virtual Vector<Int>& casa::VisBuffer::feed1 ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 266 of file VisBuffer.h.

References feed1_p, and fillFeed1().

Referenced by feed1().

virtual const Vector<Int>& casa::VisBuffer::feed1 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 269 of file VisBuffer.h.

References feed1(), and This.

virtual Vector<Float>& casa::VisBuffer::feed1_pa ( ) [inline, virtual]

feed1_pa() and feed2_pa() return an array of parallactic angles (each corresponds to the first receptor of the feed) one for each row in the current buffer.

In contrast, feed_pa() calculates the angles for each antenna. These methods are implemented for VisBuffer only to benefit from caching of the feed and antenna IDs.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 294 of file VisBuffer.h.

References feed1_pa_p, and fillFeed1_pa().

Referenced by feed1_pa().

virtual const Vector<Float>& casa::VisBuffer::feed1_pa ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 297 of file VisBuffer.h.

References feed1_pa(), and This.

virtual Vector<Int>& casa::VisBuffer::feed2 ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 273 of file VisBuffer.h.

References feed2_p, and fillFeed2().

Referenced by feed2().

virtual const Vector<Int>& casa::VisBuffer::feed2 ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 276 of file VisBuffer.h.

References feed2(), and This.

virtual Vector<Float>& casa::VisBuffer::feed2_pa ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 301 of file VisBuffer.h.

References feed2_pa_p, and fillFeed2_pa().

Referenced by feed2_pa().

virtual const Vector<Float>& casa::VisBuffer::feed2_pa ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 304 of file VisBuffer.h.

References feed2_pa(), and This.

virtual Vector<Float> casa::VisBuffer::feed_pa ( Double  time) const [virtual]

Note that feed_pa is a function instead of a cached value.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual Bool casa::VisBuffer::fetch ( const asyncio::PrefetchColumns pfc) [virtual]
virtual Int casa::VisBuffer::fieldId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 351 of file VisBuffer.h.

References fieldId_p, fillFieldId(), and This.

virtual Int& casa::VisBuffer::fieldIdRef ( ) [inline, virtual]

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 355 of file VisBuffer.h.

References fieldId_p, fillFieldId(), and This.

virtual Vector<Int>& casa::VisBuffer::fillAnt1 ( ) [private, virtual]

+-------------------------------------------------+ | Cache Declarations (fillers, statuses and data) | +-------------------------------------------------+

Preferred naming convention:

T thing () --- returns the value of thing (public method) T fillThing () --- fills thing cache variable and sets thingOK_p to true (private) Bool thingOK_p --- true if the value of thing is currently cached (private) T thing_p --- holds cached value of thing (if thingOK_p is true) (private)

Example: Vector<Int>& feed1(); Vector<Int>& fillFeed1(); Bool feed1OK_P; Vector<Int> feed1_p;

Cache filling routines in alphabetical order

The first line in a fill routine should be the macro CheckVisIter. This will cause an AipsError to be throw when there is no visibilty iterator associated with the VisBuffer. This is especially important because the fillers may be called on a VisBufferAsync in two contexts: filling where there will be a VI attached and in normal use where there is no VI attached. The filler must also set the cache status variable to True during its execution.

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by antenna1().

virtual Vector<Int>& casa::VisBuffer::fillAnt2 ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by antenna2().

virtual Int& casa::VisBuffer::fillArrayId ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by arrayId(), and arrayIdRef().

virtual Vector<Int>& casa::VisBuffer::fillChannel ( ) [private, virtual]

virtual Matrix<Int>& fillChanAveBounds();

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by channel().

virtual Vector<SquareMatrix<Complex, 2> >& casa::VisBuffer::fillCjones ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by CJones().

virtual Vector<Int>& casa::VisBuffer::fillCorrType ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by corrType().

virtual Int& casa::VisBuffer::fillDataDescriptionId ( ) [private, virtual]
virtual Vector<MDirection>& casa::VisBuffer::fillDirection1 ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::VisBufferAsync.

Referenced by direction1().

virtual Vector<MDirection>& casa::VisBuffer::fillDirection2 ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::VisBufferAsync.

Referenced by direction2().

virtual Vector<Double>& casa::VisBuffer::fillExposure ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by exposure().

virtual Vector<Int>& casa::VisBuffer::fillFeed1 ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by feed1().

virtual Vector<Float>& casa::VisBuffer::fillFeed1_pa ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by feed1_pa().

virtual Vector<Int>& casa::VisBuffer::fillFeed2 ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by feed2().

virtual Vector<Float>& casa::VisBuffer::fillFeed2_pa ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by feed2_pa().

virtual Int& casa::VisBuffer::fillFieldId ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by fieldId(), and fieldIdRef().

virtual Matrix<Bool>& casa::VisBuffer::fillFlag ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by flag().

virtual Array<Bool>& casa::VisBuffer::fillFlagCategory ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by flagCategory().

virtual Cube<Bool>& casa::VisBuffer::fillFlagCube ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by flagCube().

virtual Vector<Bool>& casa::VisBuffer::fillFlagRow ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by flagRow().

virtual Cube<Float>& casa::VisBuffer::fillFloatDataCube ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by floatDataCube().

virtual Vector<Double>& casa::VisBuffer::fillFreq ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by frequency().

virtual Int& casa::VisBuffer::fillnChannel ( ) [private, virtual]

virtual Matrix<Float>& fillImagingWeight(); virtual Vector<Double>& fillLSRFreq();

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by nChannel().

virtual Int& casa::VisBuffer::fillnCorr ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by nCorr().

virtual Int& casa::VisBuffer::fillnRow ( ) [private, virtual]

virtual Int & fillnCat();

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by nRow().

virtual Vector<Int>& casa::VisBuffer::fillObservationId ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by observationId().

virtual MDirection& casa::VisBuffer::fillPhaseCenter ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::VisBufferAsync.

Referenced by phaseCenter().

virtual Int& casa::VisBuffer::fillPolFrame ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by polFrame().

virtual Vector<Int>& casa::VisBuffer::fillProcessorId ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by processorId().

virtual Vector<Int>& casa::VisBuffer::fillScan ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by scan().

virtual Vector<Float>& casa::VisBuffer::fillSigma ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by sigma().

virtual Matrix<Float>& casa::VisBuffer::fillSigmaMat ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by sigmaMat().

virtual Int& casa::VisBuffer::fillSpW ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by spectralWindow().

virtual Vector<Int>& casa::VisBuffer::fillStateId ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by stateId().

virtual Vector<Double>& casa::VisBuffer::fillTime ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by time().

virtual Vector<Double>& casa::VisBuffer::fillTimeCentroid ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by timeCentroid().

virtual Vector<Double>& casa::VisBuffer::fillTimeInterval ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by timeInterval().

virtual Vector<RigidVector<Double, 3> >& casa::VisBuffer::filluvw ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by uvw().

virtual Matrix<Double>& casa::VisBuffer::filluvwMat ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by uvwMat().

virtual Cube<Complex>& casa::VisBuffer::fillVisCube ( VisibilityIterator::DataColumn  whichOne) [private, virtual]
virtual Vector<Float>& casa::VisBuffer::fillWeight ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by weight().

virtual Matrix<Float>& casa::VisBuffer::fillWeightMat ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by weightMat().

virtual Cube<Float>& casa::VisBuffer::fillWeightSpectrum ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Referenced by weightSpectrum().

virtual Matrix<Bool>& casa::VisBuffer::flag ( ) [inline, virtual]

Return flag for each channel & row.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 368 of file VisBuffer.h.

References fillFlag(), and flag_p.

Referenced by flag().

virtual const Matrix<Bool>& casa::VisBuffer::flag ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 371 of file VisBuffer.h.

References flag(), and This.

virtual Array<Bool>& casa::VisBuffer::flagCategory ( ) [inline, virtual]

Return flags for each polarization, channel, category, and row.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 391 of file VisBuffer.h.

References fillFlagCategory(), and flagCategory_p.

Referenced by flagCategory().

virtual const Array<Bool>& casa::VisBuffer::flagCategory ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 394 of file VisBuffer.h.

References flagCategory(), and This.

virtual Cube<Bool>& casa::VisBuffer::flagCube ( ) [inline, virtual]

Return flag for each polarization, channel and row.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 376 of file VisBuffer.h.

References fillFlagCube(), and flagCube_p.

Referenced by flagCube().

virtual const Cube<Bool>& casa::VisBuffer::flagCube ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 379 of file VisBuffer.h.

References flagCube(), and This.

virtual Vector<Bool>& casa::VisBuffer::flagRow ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 383 of file VisBuffer.h.

References fillFlagRow(), and flagRow_p.

Referenced by flagRow().

virtual const Vector<Bool>& casa::VisBuffer::flagRow ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 386 of file VisBuffer.h.

References flagRow(), and This.

virtual Cube<Float>& casa::VisBuffer::floatDataCube ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 613 of file VisBuffer.h.

References fillFloatDataCube(), and floatDataCube_p.

Referenced by floatDataCube().

virtual const Cube<Float>& casa::VisBuffer::floatDataCube ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 616 of file VisBuffer.h.

References floatDataCube(), and This.

virtual void casa::VisBuffer::formStokes ( ) [virtual]

Form Stokes parameters from correlations (these are preliminary versions)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::formStokes ( Cube< Complex > &  vis) [virtual]
virtual void casa::VisBuffer::formStokes ( Cube< Float > &  fcube) [virtual]
virtual void casa::VisBuffer::formStokesWeightandFlag ( ) [virtual]

Frequency average the buffer (visCube and [if present] modelVisCube)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::freqAverage ( ) [virtual]

Frequency average the buffer (visibility() column only)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Vector<Double>& casa::VisBuffer::frequency ( ) [inline, virtual]

Gets SPECTRAL_WINDOW/CHAN_FREQ (in Hz, acc.

to the MS def'n v.2).

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 433 of file VisBuffer.h.

References fillFreq(), and frequency_p.

Referenced by frequency().

virtual const Vector<Double>& casa::VisBuffer::frequency ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 436 of file VisBuffer.h.

References frequency(), and This.

virtual void casa::VisBuffer::getChannelSelection ( Block< Vector< Int > > &  blockNGroup,
Block< Vector< Int > > &  blockStart,
Block< Vector< Int > > &  blockWidth,
Block< Vector< Int > > &  blockIncr,
Block< Vector< Int > > &  blockSpw 
) const [inline, virtual]

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 790 of file VisBuffer.h.

References casa::ROVisibilityIterator::getChannelSelection(), and visIter_p.

virtual Int casa::VisBuffer::getOldMsId ( ) const [protected, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

virtual ROVisibilityIterator* casa::VisBuffer::getVisibilityIterator ( ) const [protected, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

virtual Double casa::VisBuffer::hourang ( Double  time) const [virtual]

Hour angle for specified time.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual Matrix<Float>& casa::VisBuffer::imagingWeight ( ) [virtual]
virtual const Matrix<Float>& casa::VisBuffer::imagingWeight ( ) const [virtual]
virtual const Matrix<Float>& casa::VisBuffer::imagingWeight ( const VisImagingWeight weightGenerator) const [protected, virtual]
virtual void casa::VisBuffer::invalidate ( ) [virtual]

Invalidate the cache.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual void casa::VisBuffer::lsrFrequency ( const Int spw,
Vector< Double > &  freq,
Bool convert,
const Bool  ignoreconv = False 
) const [virtual]

virtual Vector<Double>& lsrFrequency() { return lsrFrequencyOK_p ? lsrFrequency_p : fillLSRFreq(); } virtual const Vector<Double>& lsrFrequency() const { return This->lsrFrequency(); }

the following method is to convert the observed frequencies This conversion may not be accurate for some frame conversion like topo to lsr except if the spw is in the actual buffer

if ignoreconv=True..frequency is served as is in the data frame

Reimplemented in casa::vi::VisBuffer2Adapter.

virtual Cube<Complex>& casa::VisBuffer::modelVisCube ( ) [inline, virtual]
virtual Cube<Complex>& casa::VisBuffer::modelVisCube ( const Bool matchVisCubeShape) [inline, virtual]

Avoids call to fillVisCube(VisIter::Model)

shape it in memory like data

... and return it in the usual way

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 581 of file VisBuffer.h.

References modelVisCube(), modelVisCube_p, casa::Cube< T >::resize(), casa::shape(), casa::True, and visCube().

virtual const Cube<Complex>& casa::VisBuffer::modelVisCube ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 593 of file VisBuffer.h.

References modelVisCube(), and This.

virtual Matrix<CStokesVector>& casa::VisBuffer::modelVisibility ( ) [inline, virtual]
virtual const Matrix<CStokesVector>& casa::VisBuffer::modelVisibility ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 557 of file VisBuffer.h.

References modelVisibility(), and This.

virtual const ROMSColumns& casa::VisBuffer::msColumns ( ) const [inline, virtual]

Access the current ROMSColumns object via VisIter.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Definition at line 777 of file VisBuffer.h.

References casa::ROVisibilityIterator::msColumns(), and visIter_p.

virtual Int casa::VisBuffer::msId ( ) const [inline, virtual]

Return the actual msid, useful if using multiple ms to monitor which ms in the list is being dealt with.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Definition at line 803 of file VisBuffer.h.

References checkMSId(), oldMSId_p, and This.

virtual String casa::VisBuffer::msName ( Bool  stripPath = False) const [virtual]

get the name of the ms the buffer is at empty string if no visiter is attached

Reimplemented in casa::vi::VisBuffer2Adapter.

virtual Int& casa::VisBuffer::nChannel ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 209 of file VisBuffer.h.

References fillnChannel(), and nChannel_p.

Referenced by nChannel().

virtual Int casa::VisBuffer::nChannel ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 212 of file VisBuffer.h.

References nChannel(), and This.

virtual Int& casa::VisBuffer::nCorr ( ) [inline, virtual]

Access functions.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 202 of file VisBuffer.h.

References fillnCorr(), and nCorr_p.

Referenced by nCorr().

virtual Int casa::VisBuffer::nCorr ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 205 of file VisBuffer.h.

References nCorr(), and This.

virtual Bool casa::VisBuffer::newArrayId ( ) const [virtual]
virtual Bool casa::VisBuffer::newFieldId ( ) const [virtual]
virtual Bool casa::VisBuffer::newMS ( ) const [inline, virtual]

checked if the ms has changed since the last chunk processed

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Definition at line 809 of file VisBuffer.h.

References checkMSId(), newMS_p, and This.

virtual Bool casa::VisBuffer::newSpectralWindow ( ) const [virtual]
virtual Bool casa::VisBuffer::nonCanonCorr ( ) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBuffer::normalize ( const Bool phaseOnly = False) [virtual]

Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Int& casa::VisBuffer::nRow ( ) [inline, virtual]

virtual Int & nCat() { return nCatOK_p ? nCat_p : fillnCat(); } virtual Int nCat() const { return This->nCat(); }

Because of it being publicly exposed ...using nRow, nChannel, nCorr etc to determine the size of the buffer can be totally WRONG *They MAY NOT represent the shape of a buffer filled in this iteration. Decide what is the right value (depending on where the vb is coming from) for you for the size of the buffer. i.e (nCorr(), nChannel(), nRow()) or vb.visCube().shape() The latter comes from the VisIter state ...the former be careful... For example VisBuffAccumulator changes these in an unconnected fashion; without updating fillnrow datacube shape etc etc. You are warned nrow_p etc are public variables effectively (despite being *declared private) so it can be changed anywhere the code uses a vb, intentionally or accidentally.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 243 of file VisBuffer.h.

References fillnRow(), and nRow_p.

Referenced by nRow(), casa::EVLAAperture::vbRow2CFKeyMap(), and casa::ATerm::vbRow2CFKeyMap().

virtual Int casa::VisBuffer::nRow ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

Definition at line 246 of file VisBuffer.h.

References nRow(), and This.

virtual Int casa::VisBuffer::nRowChunk ( ) const [virtual]

Reimplemented in casa::VisBufferAsync.

virtual Int casa::VisBuffer::numberAnt ( ) const [virtual]
virtual Int casa::VisBuffer::numberCoh ( ) const [virtual]
virtual Vector<Int>& casa::VisBuffer::observationId ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 418 of file VisBuffer.h.

References fillObservationId(), and observationId_p.

Referenced by observationId().

virtual const Vector<Int>& casa::VisBuffer::observationId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 421 of file VisBuffer.h.

References observationId(), and This.

VisBuffer& casa::VisBuffer::operator-= ( const VisBuffer vb)

subtraction: return the difference of the visibilities, flags of this and other are or-ed.

An exception is thrown if the number of rows or channels differs, but no further checks are done.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual VisBuffer& casa::VisBuffer::operator= ( const VisBuffer vb) [virtual]

Assignment, loses synchronization with iterator: only use buffer for current iteration (or reattach)

Reimplemented in casa::CalVisBuffer.

virtual Vector<Float> casa::VisBuffer::parang ( Double  time) const [virtual]
virtual Float casa::VisBuffer::parang0 ( Double  time) const [virtual]

NOMINAL parallactic angle (feed p.a.

offset NOT included)

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual MDirection& casa::VisBuffer::phaseCenter ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 457 of file VisBuffer.h.

References fillPhaseCenter(), and phaseCenter_p.

Referenced by phaseCenter().

virtual MDirection casa::VisBuffer::phaseCenter ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 460 of file VisBuffer.h.

References phaseCenter(), and This.

virtual void casa::VisBuffer::phaseCenterShift ( const Vector< Double > &  phase) [virtual]

Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres)

Reimplemented in casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::phaseCenterShift ( Double  dx,
Double  dy 
) [virtual]

Rotate visibility phase for phase center offsets (arcsecs)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Int casa::VisBuffer::polarizationId ( ) const [inline, virtual]
virtual Int casa::VisBuffer::polFrame ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 464 of file VisBuffer.h.

References fillPolFrame(), polFrame_p, and This.

virtual Vector<Int>& casa::VisBuffer::processorId ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 411 of file VisBuffer.h.

References fillProcessorId(), and processorId_p.

Referenced by processorId().

virtual const Vector<Int>& casa::VisBuffer::processorId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 414 of file VisBuffer.h.

References processorId(), and This.

virtual void casa::VisBuffer::refModelVis ( const Matrix< CStokesVector > &  mvis) [virtual]

Reference external model visibilities.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::removeScratchCols ( ) [virtual]

Remove scratch cols data from vb.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::resetWeightMat ( ) [virtual]

Fill weightMat according to sigma column.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Vector<uInt>& casa::VisBuffer::rowIds ( ) [virtual]

Return the row Ids from the original ms.

If the ms used is a subset of another ms then rowIds() return the row ids of the original ms.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Referenced by rowIds().

virtual const Vector<uInt>& casa::VisBuffer::rowIds ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

Definition at line 683 of file VisBuffer.h.

References rowIds(), and This.

virtual Vector<Int>& casa::VisBuffer::scan ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 398 of file VisBuffer.h.

References fillScan(), and scan_p.

Referenced by scan(), and scan0().

virtual const Vector<Int>& casa::VisBuffer::scan ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 401 of file VisBuffer.h.

References scan(), and This.

virtual Int casa::VisBuffer::scan0 ( ) [inline, virtual]

scalar version for convenience, when scan known constant for entire iteration/buffer.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 407 of file VisBuffer.h.

References scan().

virtual void casa::VisBuffer::setAllCacheStatuses ( bool  status) [private, virtual]

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBuffer::setCorrectedVisCube ( Complex  c) [virtual]
virtual void casa::VisBuffer::setCorrectedVisCube ( const Cube< Complex > &  vis) [virtual]
virtual void casa::VisBuffer::setFloatDataCube ( const Cube< Float > &  fcube) [virtual]

Like the above, but for FLOAT_DATA, keeping it as real floats.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual void casa::VisBuffer::setModelVisCube ( Complex  c) [virtual]
virtual void casa::VisBuffer::setModelVisCube ( const Cube< Complex > &  vis) [virtual]
virtual void casa::VisBuffer::setModelVisCube ( const Vector< Float > &  stokes) [virtual]

Set model according to a Stokes vector.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual void casa::VisBuffer::setVisCube ( Complex  c) [virtual]

Set the visibility to a constant, note that this only changes the buffer, no values are written back to tables from here.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual void casa::VisBuffer::setVisCube ( const Cube< Complex > &  vis) [virtual]

Set the visibility, note that this only changes the buffer, no values are written back to tables from here.

Reimplemented in casa::VisBufferAsyncWrapper, casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

virtual Vector<Float>& casa::VisBuffer::sigma ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 475 of file VisBuffer.h.

References fillSigma(), and sigma_p.

Referenced by sigma().

virtual const Vector<Float>& casa::VisBuffer::sigma ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 478 of file VisBuffer.h.

References sigma(), and This.

virtual Matrix<Float>& casa::VisBuffer::sigmaMat ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 482 of file VisBuffer.h.

References fillSigmaMat(), and sigmaMat_p.

Referenced by sigmaMat().

virtual const Matrix<Float>& casa::VisBuffer::sigmaMat ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 485 of file VisBuffer.h.

References sigmaMat(), and This.

virtual void casa::VisBuffer::sortCorr ( ) [virtual]

Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations--use with care!)

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Int& casa::VisBuffer::spectralWindow ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 489 of file VisBuffer.h.

References fillSpW(), spectralWindow_p, and This.

virtual Int casa::VisBuffer::spectralWindow ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 492 of file VisBuffer.h.

References fillSpW(), spectralWindow_p, and This.

virtual Vector<Int>& casa::VisBuffer::stateId ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 425 of file VisBuffer.h.

References fillStateId(), and stateId_p.

Referenced by stateId().

virtual const Vector<Int>& casa::VisBuffer::stateId ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 428 of file VisBuffer.h.

References stateId(), and This.

virtual Vector<Double>& casa::VisBuffer::time ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 504 of file VisBuffer.h.

References fillTime(), and time_p.

Referenced by time().

virtual const Vector<Double>& casa::VisBuffer::time ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 507 of file VisBuffer.h.

References This, and time().

virtual Vector<Double>& casa::VisBuffer::timeCentroid ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 511 of file VisBuffer.h.

References fillTimeCentroid(), and timeCentroid_p.

Referenced by timeCentroid().

virtual const Vector<Double>& casa::VisBuffer::timeCentroid ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 514 of file VisBuffer.h.

References This, and timeCentroid().

virtual Vector<Double>& casa::VisBuffer::timeInterval ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 518 of file VisBuffer.h.

References fillTimeInterval(), and timeInterval_p.

Referenced by timeInterval().

virtual const Vector<Double>& casa::VisBuffer::timeInterval ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 521 of file VisBuffer.h.

References This, and timeInterval().

virtual Bool casa::VisBuffer::timeRange ( MEpoch rTime,
MVEpoch rTimeEP,
MVEpoch rInterval 
) const [virtual]
virtual Vector<Int> casa::VisBuffer::unique ( const Vector< Int > &  indices) const [private, virtual]

Filter index arrays for unique elements.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBuffer::unSortCorr ( ) [virtual]
template<typename Coord >
void casa::VisBuffer::updateCoord ( const VisBuffer other,
Bool  otherOk,
const Coord &(VisBuffer::*)() const  getCoord,
Coord &  coord,
Bool coordOk 
) [inline, protected]

Definition at line 833 of file VisBuffer.h.

References casa::True.

virtual void casa::VisBuffer::updateCoordInfo ( const VisBuffer vb = NULL,
const Bool  dirDependent = True 
) [virtual]

Update coordinate info - useful for copied VisBuffers that need to retain some state for later reference.

Presently this fills antenna, array, field and spectralWindow ids, time, frequency and number of rows. if dirDependent is set to False the expensive direction dependent calculation of parallactic or direction of antenna from pointing table is avoided Add more as needed.

Reimplemented in casa::vi::VisBuffer2Adapter, and casa::VisBufferAsync.

template<typename Scalar >
void casa::VisBuffer::updateCoordS ( const VisBuffer other,
Bool  otherOk,
Scalar(VisBuffer::*)() const  getCoord,
Scalar &  coord,
Bool coordOk 
) [inline, protected]

Definition at line 849 of file VisBuffer.h.

References casa::True.

virtual Vector<RigidVector<Double, 3> >& casa::VisBuffer::uvw ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 532 of file VisBuffer.h.

References filluvw(), and uvw_p.

Referenced by uvw().

virtual const Vector<RigidVector<Double, 3> >& casa::VisBuffer::uvw ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 535 of file VisBuffer.h.

References This, and uvw().

virtual Matrix<Double>& casa::VisBuffer::uvwMat ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 539 of file VisBuffer.h.

References filluvwMat(), and uvwMat_p.

Referenced by uvwMat().

virtual const Matrix<Double>& casa::VisBuffer::uvwMat ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 542 of file VisBuffer.h.

References This, and uvwMat().

virtual void casa::VisBuffer::validate ( ) [private, virtual]

validate the cache

Reimplemented in casa::VisBufferAsyncWrapper.

virtual Vector<Int> casa::VisBuffer::vecIntRange ( const MSCalEnums::colDef calEnum) const [virtual]

Utility functions to provide coordinate or column ranges of the data in the VisBuffer.

Flagging is applied before computing the ranges.

   Generic accessor to column ranges of integer type, as specified by
   enumerations defined in class MSCalEnums. Throws an exception
   if the enum is not for a recognized integer column.  

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

virtual Cube<Complex>& casa::VisBuffer::visCube ( ) [inline, virtual]
virtual const Cube<Complex>& casa::VisBuffer::visCube ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 572 of file VisBuffer.h.

References This, and visCube().

virtual Matrix<CStokesVector>& casa::VisBuffer::visibility ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 546 of file VisBuffer.h.

References fillVis(), casa::ROVisibilityIterator::Observed, and visibility_p.

Referenced by visibility().

virtual const Matrix<CStokesVector>& casa::VisBuffer::visibility ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 549 of file VisBuffer.h.

References This, and visibility().

virtual Vector<Float>& casa::VisBuffer::weight ( ) [inline, virtual]

Returns the weights for each row averaged over the parallel hand correlations.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 621 of file VisBuffer.h.

References fillWeight(), and weight_p.

Referenced by weight().

virtual const Vector<Float>& casa::VisBuffer::weight ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 624 of file VisBuffer.h.

References This, and weight().

virtual Cube<Float>& casa::VisBuffer::weightCube ( ) [inline, virtual]

virtual Matrix<Float>& imagingWeight() { return imagingWeightOK_p ? imagingWeight_p : fillImagingWeight(); } virtual const Matrix<Float>& imagingWeight() const { return This->imagingWeight(); }

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 659 of file VisBuffer.h.

References weightCube_p.

virtual Matrix<Float>& casa::VisBuffer::weightMat ( ) [inline, virtual]

Returns the nPol_p x curNumRow_p weight matrix.

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 629 of file VisBuffer.h.

References fillWeightMat(), and weightMat_p.

Referenced by weightMat().

virtual const Matrix<Float>& casa::VisBuffer::weightMat ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 632 of file VisBuffer.h.

References This, and weightMat().

virtual Cube<Float>& casa::VisBuffer::weightSpectrum ( ) [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 641 of file VisBuffer.h.

References fillWeightSpectrum(), and weightSpectrum_p.

Referenced by weightSpectrum().

virtual const Cube<Float>& casa::VisBuffer::weightSpectrum ( ) const [inline, virtual]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::vi::VisBuffer2Adapter.

Definition at line 644 of file VisBuffer.h.

References This, and weightSpectrum().


Friends And Related Function Documentation

friend class asyncio::VLAT [friend]

Reimplemented in casa::VisBufferAsync.

Definition at line 155 of file VisBuffer.h.

friend class ViReadImplAsync [friend]

Reimplemented in casa::VisBufferAsyncWrapper, and casa::VisBufferAsync.

Definition at line 158 of file VisBuffer.h.

friend class VisBufferAsync [friend]

Definition at line 156 of file VisBuffer.h.

friend class VisBufferAsyncWrapper [friend]

Reimplemented in casa::VisBufferAsync.

Definition at line 157 of file VisBuffer.h.


Member Data Documentation

Cached values (alphabetical order)

Definition at line 1080 of file VisBuffer.h.

Referenced by antenna1().

Definition at line 1081 of file VisBuffer.h.

Referenced by antenna2().

Definition at line 1082 of file VisBuffer.h.

Referenced by arrayId(), and arrayIdRef().

Definition at line 1083 of file VisBuffer.h.

Definition at line 1084 of file VisBuffer.h.

Referenced by channel().

Definition at line 1085 of file VisBuffer.h.

Referenced by CJones().

Definition at line 1086 of file VisBuffer.h.

Referenced by correctedVisCube().

Definition at line 1087 of file VisBuffer.h.

Referenced by correctedVisibility().

Definition at line 925 of file VisBuffer.h.

Definition at line 1088 of file VisBuffer.h.

Referenced by corrType().

Definition at line 1089 of file VisBuffer.h.

Referenced by dataDescriptionId(), and dataDescriptionIdRef().

Definition at line 1090 of file VisBuffer.h.

Referenced by direction1().

Definition at line 1091 of file VisBuffer.h.

Referenced by direction2().

Definition at line 926 of file VisBuffer.h.

Definition at line 1092 of file VisBuffer.h.

Referenced by exposure().

Definition at line 1093 of file VisBuffer.h.

Referenced by feed1().

Definition at line 1094 of file VisBuffer.h.

Referenced by feed1_pa().

Definition at line 1095 of file VisBuffer.h.

Referenced by feed2().

Definition at line 1096 of file VisBuffer.h.

Referenced by feed2_pa().

Definition at line 1097 of file VisBuffer.h.

Referenced by fieldId(), and fieldIdRef().

Definition at line 1098 of file VisBuffer.h.

Referenced by flag().

Definition at line 1099 of file VisBuffer.h.

Referenced by flagCategory().

Definition at line 1100 of file VisBuffer.h.

Referenced by flagCube().

Definition at line 1101 of file VisBuffer.h.

Referenced by flagRow().

Definition at line 1102 of file VisBuffer.h.

Referenced by floatDataCube().

Definition at line 1103 of file VisBuffer.h.

Referenced by frequency().

Definition at line 1104 of file VisBuffer.h.

Definition at line 927 of file VisBuffer.h.

Vector<Double> lsrFrequency_p;.

Definition at line 1106 of file VisBuffer.h.

Referenced by modelVisCube().

Definition at line 1107 of file VisBuffer.h.

Referenced by modelVisibility().

Definition at line 1108 of file VisBuffer.h.

Referenced by nChannel().

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 1109 of file VisBuffer.h.

Referenced by nCorr().

Definition at line 1006 of file VisBuffer.h.

Referenced by newMS().

Int nCat_p;.

Definition at line 1111 of file VisBuffer.h.

Referenced by nRow().

Definition at line 1112 of file VisBuffer.h.

Referenced by observationId().

Definition at line 928 of file VisBuffer.h.

Referenced by msId().

Definition at line 1113 of file VisBuffer.h.

Referenced by phaseCenter().

Definition at line 1114 of file VisBuffer.h.

Referenced by polFrame().

Definition at line 1115 of file VisBuffer.h.

Referenced by processorId().

Definition at line 1116 of file VisBuffer.h.

Definition at line 1117 of file VisBuffer.h.

Referenced by scan().

Definition at line 1118 of file VisBuffer.h.

Referenced by sigma().

Definition at line 1119 of file VisBuffer.h.

Referenced by sigmaMat().

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 1120 of file VisBuffer.h.

Referenced by spectralWindow().

Definition at line 1121 of file VisBuffer.h.

Referenced by stateId().

Definition at line 1122 of file VisBuffer.h.

Referenced by time().

Definition at line 1123 of file VisBuffer.h.

Referenced by timeCentroid().

Definition at line 1124 of file VisBuffer.h.

Referenced by timeInterval().

Definition at line 930 of file VisBuffer.h.

Reimplemented in casa::vi::VisBuffer2Adapter.

Definition at line 1125 of file VisBuffer.h.

Referenced by uvw().

Definition at line 1126 of file VisBuffer.h.

Referenced by uvwMat().

Cube<Complex> casa::VisBuffer::visCube_p [private]

Definition at line 1127 of file VisBuffer.h.

Referenced by visCube().

Definition at line 1128 of file VisBuffer.h.

Referenced by visibility().

Definition at line 932 of file VisBuffer.h.

Definition at line 1129 of file VisBuffer.h.

Referenced by weight().

Definition at line 1130 of file VisBuffer.h.

Referenced by weightCube().

Definition at line 1131 of file VisBuffer.h.

Referenced by weightMat().

Definition at line 1132 of file VisBuffer.h.

Referenced by weightSpectrum().


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