casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::VisBufferAsync Class Reference

#include <VisBufferAsync.h>

Inheritance diagram for casa::VisBufferAsync:
casa::VisBuffer casa::VisBufferAsyncWrapper

Public Member Functions

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

Protected Member Functions

 VisBufferAsync ()
 The constructors are not public because creation should be performed by a factory object (e.g., VisBufferAutoPtr). More...
 
 VisBufferAsync (const VisBufferAsync &other)
 
 VisBufferAsync (ROVisibilityIterator &iter)
 
void attachToVisIter (ROVisibilityIterator &iter)
 Attach to a VisIter. More...
 
void checkVisIter (const char *func, const char *file, int line, const char *extra="") const
 
void clear ()
 
void construct ()
 
virtual void copyAsyncValues (const VisBufferAsync &other)
 
virtual void copyCache (const VisBuffer &other, casacore::Bool force)
 
template<typename T >
void copyVector (const casacore::Vector< T > &from, casacore::Vector< T > &to)
 
casacore::Vector
< casacore::MDirection > & 
fillDirection1 ()
 
casacore::Vector
< casacore::MDirection > & 
fillDirection2 ()
 
void fillFrom (const VisBufferAsync &other)
 
casacore::MDirectionfillPhaseCenter ()
 
casacore::Bool getAllBeamOffsetsZero () const
 
const casacore::Vector
< casacore::String > & 
getAntennaMounts () const
 
const casacore::Cube
< casacore::RigidVector
< casacore::Double, 2 > > & 
getBeamOffsets () const
 
const casacore::MeasurementSetgetMs () const
 
casacore::Int getNSpw () const
 
casacore::MDirection getPhaseCenter () const
 
const casacore::Cube
< casacore::Double > & 
getReceptorAngles () const
 
void setAngleInfo (casacore::Bool allBeamOffsetsZero, const casacore::Vector< casacore::String > antennaMounts, casacore::Cube< casacore::RigidVector< casacore::Double, 2 > > beamOffsets, const casacore::Cube< casacore::Double > &receptorAngles)
 
void initializeScalars ()
 
void setFilling (casacore::Bool isFilling)
 
void setLsrInfo (const casacore::Block< casacore::Int > &channelGroupNumber, const casacore::Block< casacore::Int > &channelIncrement, const casacore::Block< casacore::Int > &channelStart, const casacore::Block< casacore::Int > &channelWidth, const casacore::MPosition &observatoryPosition, const casacore::MDirection &phaseCenter, casacore::Bool velocitySelection)
 
void setMeasurementSet (const casacore::MeasurementSet &ms)
 
void setMeasurementSetId (casacore::Int id, bool isNew)
 
void setMEpoch (const casacore::MEpoch &mEpoch)
 
void setMSD (const casacore::MSDerivedValues &msd)
 
void setNAntennas (casacore::Int)
 
void setNCoh (casacore::Int)
 
void setNSpw (casacore::Int)
 
void setNewEntityFlags (bool newArrayId, bool newFieldId, bool newSpectralWindow)
 
void setPolarizationId (casacore::Int)
 
void setNRowChunk (casacore::Int)
 
void setReceptor0Angle (const casacore::Vector< casacore::Float > &receptor0Angle)
 
void setRowIds (const casacore::Vector< casacore::uInt > &rowIds)
 
void setSelectedNVisibilityChannels (const casacore::Vector< casacore::Int > &nVisibilityChannels)
 
void setSelectedSpectralWindows (const casacore::Vector< casacore::Int > &spectralWindows)
 
void setTopoFreqs (const casacore::Vector< casacore::Double > &lsrFreq, const casacore::Vector< casacore::Double > &selFreq_p)
 
void setVisibilityShape (const casacore::IPosition &pvisibilityShape)
 
void updateCoordInfo (const VisBuffer *, const casacore::Bool dirDependent=true)
 Update coordinate info - useful for copied VisBuffers that need to retain some state for later reference. More...
 
- Protected Member Functions inherited from casa::VisBuffer
virtual casacore::Bool checkMSId ()
 
virtual void copyMsInfo (casacore::Int &msID, casacore::Bool &MsOk_p, casacore::Bool &newMs) const
 
virtual const casacore::Matrix
< casacore::Float > & 
imagingWeight (const VisImagingWeight &weightGenerator) const
 
virtual casacore::Int getOldMsId () const
 
virtual ROVisibilityIteratorgetVisibilityIterator () const
 
template<typename Coord >
void updateCoord (const VisBuffer *other, casacore::Bool otherOk, const Coord &(VisBuffer::*getCoord)() const, Coord &coord, casacore::Bool &coordOk)
 
template<typename Scalar >
void updateCoordS (const VisBuffer *other, casacore::Bool otherOk, Scalar(VisBuffer::*getCoord)() const, Scalar &coord, casacore::Bool &coordOk)
 

Static Protected Member Functions

static casacore::MDirection unsharedCopyDirection (const casacore::MDirection &direction)
 
static void unsharedCopyDirectionVector (casacore::Vector< casacore::MDirection > &direction)
 
static casacore::MEpoch unsharedCopyEpoch (const casacore::MEpoch &mEpoch)
 
static casacore::MPosition unsharedCopyPosition (const casacore::MPosition &position)
 

Private Member Functions

casacore::Bool fillAllBeamOffsetsZero ()
 
casacore::Vector
< casacore::String
fillAntennaMounts ()
 
casacore::Cube
< casacore::RigidVector
< casacore::Double, 2 > > 
fillBeamOffsets ()
 
casacore::Cube< casacore::DoublefillReceptorAngles ()
 

Private Attributes

casacore::Bool allBeamOffsetsZero_p
 
casacore::Vector
< casacore::String
antennaMounts_p
 
casacore::Vector
< casacore::MDirection
azelCached_p
 
casacore::Double azelCachedTime_p
 
casacore::Cube
< casacore::RigidVector
< casacore::Double, 2 > > 
beamOffsets_p
 
casacore::Block< casacore::IntchannelGroupNumber_p
 
casacore::Block< casacore::IntchannelIncrement_p
 
casacore::Block< casacore::IntchannelStart_p
 
casacore::Block< casacore::IntchannelWidth_p
 
casacore::Vector< casacore::FloatfeedpaCached_p
 casacore::Int dataDescriptionId_p; More...
 
casacore::Double feedpaCachedTime_p
 
casacore::Bool isFilling_p
 
casacore::Vector
< casacore::Double
lsrFrequency_p
 
casacore::MEpoch mEpoch_p
 
const casacore::MeasurementSetmeasurementSet_p
 
casacore::ROMSColumnsmsColumns_p
 
casacore::MSDerivedValuesmsd_p
 
casacore::Int nAntennas_p
 
casacore::Int nCoh_p
 
casacore::Bool newArrayId_p
 
casacore::Bool newFieldId_p
 
casacore::Bool newSpectralWindow_p
 
casacore::Int nRowChunk_p
 
casacore::Int nSpw_p
 
casacore::MPosition observatoryPosition_p
 const casacore::ScalarColumn<casacore::Int> * obsMFreqTypes_p; // [use] More...
 
casacore::Vector< casacore::FloatparangCached_p
 
casacore::Double parangCachedTime_p
 
casacore::Int polarizationId_p
 
casacore::Vector< casacore::Floatreceptor0Angle_p
 
casacore::Cube< casacore::DoublereceptorAngles_p
 
casacore::Vector
< casacore::Double
selFreq_p
 
casacore::Vector< casacore::IntselectedNVisibilityChannels_p
 
casacore::Vector< casacore::IntselectedSpectralWindows_p
 
casacore::Bool velSelection_p
 
casacore::IPosition visibilityShape_p
 

Friends

class Rovia_Test
 
class ViReadImplAsync
 
class VisBufferAsyncWrapper
 
class VisBufferAutoPtr
 
class asyncio::VlaDatum
 
class asyncio::VLAT
 

Detailed Description

Definition at line 22 of file VisBufferAsync.h.

Constructor & Destructor Documentation

casa::VisBufferAsync::~VisBufferAsync ( )

VisBufferAsync (const VisBuffer& vb);.

casa::VisBufferAsync::VisBufferAsync ( )
protected

The constructors are not public because creation should be performed by a factory object (e.g., VisBufferAutoPtr).

The use of a factory makes it possible to fine tune at run time whether a VisBuffer or a VisBufferAsync is created.

casa::VisBufferAsync::VisBufferAsync ( const VisBufferAsync other)
protected
casa::VisBufferAsync::VisBufferAsync ( ROVisibilityIterator iter)
protected

Member Function Documentation

virtual void casa::VisBufferAsync::allSelectedSpectralWindows ( casacore::Vector< casacore::Int > &  spws,
casacore::Vector< casacore::Int > &  nvischan 
)
virtual

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

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual VisBufferAsync& casa::VisBufferAsync::assign ( const VisBuffer vb,
casacore::Bool  copy 
)
virtual

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

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::attachToVisIter ( ROVisibilityIterator iter)
protectedvirtual

Attach to a VisIter.

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

Reimplemented from casa::VisBuffer.

virtual casacore::Vector<casacore::MDirection> casa::VisBufferAsync::azel ( casacore::Double  time) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual casacore::MDirection casa::VisBufferAsync::azel0 ( casacore::Double  time) const
virtual

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

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::checkVisIter ( const char *  func,
const char *  file,
int  line,
const char *  extra = "" 
) const
protectedvirtual

Reimplemented from casa::VisBuffer.

void casa::VisBufferAsync::clear ( )
protected
virtual VisBuffer* casa::VisBufferAsync::clone ( ) const
virtual

Reimplemented from casa::VisBuffer.

void casa::VisBufferAsync::construct ( )
protected
virtual void casa::VisBufferAsync::copyAsyncValues ( const VisBufferAsync other)
protectedvirtual
virtual void casa::VisBufferAsync::copyCache ( const VisBuffer other,
casacore::Bool  force 
)
protectedvirtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

template<typename T >
void casa::VisBufferAsync::copyVector ( const casacore::Vector< T > &  from,
casacore::Vector< T > &  to 
)
protected

Make an independent copy of the vector. N.B.: the independence is only at the top casacore::Vector level so any deep dependence is not undone

Definition at line 192 of file VisBufferAsync.h.

References casacore::Array< T >::copy().

virtual void casa::VisBufferAsync::detachFromVisIter ( )
virtual
virtual casacore::Vector<casacore::Float> casa::VisBufferAsync::feed_pa ( casacore::Double  time) const
virtual

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

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

casacore::Bool casa::VisBufferAsync::fillAllBeamOffsetsZero ( )
private
casacore::Vector<casacore::String> casa::VisBufferAsync::fillAntennaMounts ( )
private
casacore::Cube<casacore::RigidVector <casacore::Double, 2> > casa::VisBufferAsync::fillBeamOffsets ( )
private
casacore::Vector<casacore::MDirection>& casa::VisBufferAsync::fillDirection1 ( )
protectedvirtual

Reimplemented from casa::VisBuffer.

casacore::Vector<casacore::MDirection>& casa::VisBufferAsync::fillDirection2 ( )
protectedvirtual

Reimplemented from casa::VisBuffer.

void casa::VisBufferAsync::fillFrom ( const VisBufferAsync other)
protected
casacore::MDirection& casa::VisBufferAsync::fillPhaseCenter ( )
protectedvirtual

Reimplemented from casa::VisBuffer.

casacore::Cube<casacore::Double> casa::VisBufferAsync::fillReceptorAngles ( )
private
casacore::Bool casa::VisBufferAsync::getAllBeamOffsetsZero ( ) const
protected
const casacore::Vector<casacore::String>& casa::VisBufferAsync::getAntennaMounts ( ) const
protected
const casacore::Cube<casacore::RigidVector <casacore::Double, 2> >& casa::VisBufferAsync::getBeamOffsets ( ) const
protected
const casacore::MeasurementSet& casa::VisBufferAsync::getMs ( ) const
protected
casacore::Int casa::VisBufferAsync::getNSpw ( ) const
protected
casacore::MDirection casa::VisBufferAsync::getPhaseCenter ( ) const
protected
const casacore::Cube<casacore::Double>& casa::VisBufferAsync::getReceptorAngles ( ) const
protected
virtual casacore::Double casa::VisBufferAsync::hourang ( casacore::Double  time) const
virtual

Hour angle for specified time.

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::initializeScalars ( )
protected
virtual void casa::VisBufferAsync::invalidate ( )
virtual

Invalidate the cache.

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBufferAsync::invalidateAsync ( )
virtual
virtual void casa::VisBufferAsync::lsrFrequency ( const casacore::Int spw,
casacore::Vector< casacore::Double > &  freq,
casacore::Bool convert 
) const
virtual

virtual casacore::Vector<casacore::Double> & lsrFrequency (); virtual const casacore::Vector<casacore::Double> & lsrFrequency () const;

Reimplemented in casa::VisBufferAsyncWrapper.

virtual const casacore::ROMSColumns& casa::VisBufferAsync::msColumns ( ) const
virtual

Access the current casacore::ROMSColumns object via VisIter.

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

casacore::Int casa::VisBufferAsync::msId ( ) const
virtual

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

Reimplemented from casa::VisBuffer.

virtual casacore::Bool casa::VisBufferAsync::newArrayId ( ) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual casacore::Bool casa::VisBufferAsync::newFieldId ( ) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

casacore::Bool casa::VisBufferAsync::newMS ( ) const
virtual

checked if the ms has changed since the last chunk processed

Reimplemented from casa::VisBuffer.

virtual casacore::Bool casa::VisBufferAsync::newSpectralWindow ( ) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

casacore::Int casa::VisBufferAsync::nRowChunk ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 59 of file VisBufferAsync.h.

References nRowChunk_p.

casacore::Int casa::VisBufferAsync::numberAnt ( ) const
virtual

Reimplemented from casa::VisBuffer.

casacore::Int casa::VisBufferAsync::numberCoh ( ) const
virtual

Reimplemented from casa::VisBuffer.

VisBufferAsync& casa::VisBufferAsync::operator= ( const VisBufferAsync other)
virtual casacore::Vector<casacore::Float> casa::VisBufferAsync::parang ( casacore::Double  time) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual casacore::Float casa::VisBufferAsync::parang0 ( casacore::Double  time) const
virtual

NOMINAL parallactic angle (feed p.a.

offset NOT included)

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual casacore::Int casa::VisBufferAsync::polarizationId ( ) const
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual casacore::Vector<casacore::uInt>& casa::VisBufferAsync::rowIds ( )
inlinevirtual

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 from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

Definition at line 68 of file VisBufferAsync.h.

virtual const casacore::Vector<casacore::uInt>& casa::VisBufferAsync::rowIds ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

Definition at line 69 of file VisBufferAsync.h.

void casa::VisBufferAsync::setAngleInfo ( casacore::Bool  allBeamOffsetsZero,
const casacore::Vector< casacore::String antennaMounts,
casacore::Cube< casacore::RigidVector< casacore::Double, 2 > >  beamOffsets,
const casacore::Cube< casacore::Double > &  receptorAngles 
)
protected
virtual void casa::VisBufferAsync::setCorrectedVisCube ( casacore::Complex  c)
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBufferAsync::setCorrectedVisCube ( const casacore::Cube< casacore::Complex > &  vis)
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::setFilling ( casacore::Bool  isFilling)
protected
void casa::VisBufferAsync::setLsrInfo ( const casacore::Block< casacore::Int > &  channelGroupNumber,
const casacore::Block< casacore::Int > &  channelIncrement,
const casacore::Block< casacore::Int > &  channelStart,
const casacore::Block< casacore::Int > &  channelWidth,
const casacore::MPosition observatoryPosition,
const casacore::MDirection phaseCenter,
casacore::Bool  velocitySelection 
)
protected
void casa::VisBufferAsync::setMeasurementSet ( const casacore::MeasurementSet ms)
protected
void casa::VisBufferAsync::setMeasurementSetId ( casacore::Int  id,
bool  isNew 
)
protected
void casa::VisBufferAsync::setMEpoch ( const casacore::MEpoch mEpoch)
protected
virtual void casa::VisBufferAsync::setModelVisCube ( casacore::Complex  c)
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBufferAsync::setModelVisCube ( const casacore::Cube< casacore::Complex > &  vis)
virtual

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBufferAsync::setModelVisCube ( const casacore::Vector< casacore::Float > &  stokes)
virtual

Set model according to a casacore::Stokes vector.

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::setMSD ( const casacore::MSDerivedValues msd)
protected
void casa::VisBufferAsync::setNAntennas ( casacore::Int  )
protected
void casa::VisBufferAsync::setNCoh ( casacore::Int  )
protected
void casa::VisBufferAsync::setNewEntityFlags ( bool  newArrayId,
bool  newFieldId,
bool  newSpectralWindow 
)
protected
void casa::VisBufferAsync::setNRowChunk ( casacore::Int  )
protected
void casa::VisBufferAsync::setNSpw ( casacore::Int  )
protected
void casa::VisBufferAsync::setPolarizationId ( casacore::Int  )
protected
void casa::VisBufferAsync::setReceptor0Angle ( const casacore::Vector< casacore::Float > &  receptor0Angle)
protected
void casa::VisBufferAsync::setRowIds ( const casacore::Vector< casacore::uInt > &  rowIds)
protected
void casa::VisBufferAsync::setSelectedNVisibilityChannels ( const casacore::Vector< casacore::Int > &  nVisibilityChannels)
protected
void casa::VisBufferAsync::setSelectedSpectralWindows ( const casacore::Vector< casacore::Int > &  spectralWindows)
protected
void casa::VisBufferAsync::setTopoFreqs ( const casacore::Vector< casacore::Double > &  lsrFreq,
const casacore::Vector< casacore::Double > &  selFreq_p 
)
protected
virtual void casa::VisBufferAsync::setVisCube ( casacore::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 from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

virtual void casa::VisBufferAsync::setVisCube ( const casacore::Cube< casacore::Complex > &  vis)
virtual

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

Reimplemented from casa::VisBuffer.

Reimplemented in casa::VisBufferAsyncWrapper.

void casa::VisBufferAsync::setVisibilityShape ( const casacore::IPosition pvisibilityShape)
protected
static casacore::MDirection casa::VisBufferAsync::unsharedCopyDirection ( const casacore::MDirection direction)
staticprotected
static void casa::VisBufferAsync::unsharedCopyDirectionVector ( casacore::Vector< casacore::MDirection > &  direction)
staticprotected
static casacore::MEpoch casa::VisBufferAsync::unsharedCopyEpoch ( const casacore::MEpoch mEpoch)
staticprotected
static casacore::MPosition casa::VisBufferAsync::unsharedCopyPosition ( const casacore::MPosition position)
staticprotected
void casa::VisBufferAsync::updateCoordInfo ( const VisBuffer vb,
const casacore::Bool  dirDependent = true 
)
protectedvirtual

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 from casa::VisBuffer.

Friends And Related Function Documentation

friend class asyncio::VlaDatum
friend

Definition at line 28 of file VisBufferAsync.h.

friend class asyncio::VLAT
friend

Definition at line 29 of file VisBufferAsync.h.

friend class Rovia_Test
friend

Definition at line 24 of file VisBufferAsync.h.

friend class ViReadImplAsync
friend

Definition at line 25 of file VisBufferAsync.h.

friend class VisBufferAsyncWrapper
friend

Definition at line 26 of file VisBufferAsync.h.

friend class VisBufferAutoPtr
friend

Definition at line 27 of file VisBufferAsync.h.

Member Data Documentation

casacore::Bool casa::VisBufferAsync::allBeamOffsetsZero_p
private

Definition at line 151 of file VisBufferAsync.h.

casacore::Vector<casacore::String> casa::VisBufferAsync::antennaMounts_p
private

Definition at line 152 of file VisBufferAsync.h.

casacore::Vector<casacore::MDirection> casa::VisBufferAsync::azelCached_p
mutableprivate

Definition at line 153 of file VisBufferAsync.h.

casacore::Double casa::VisBufferAsync::azelCachedTime_p
mutableprivate

Definition at line 154 of file VisBufferAsync.h.

casacore::Cube<casacore::RigidVector<casacore::Double, 2> > casa::VisBufferAsync::beamOffsets_p
private

Definition at line 155 of file VisBufferAsync.h.

casacore::Block<casacore::Int> casa::VisBufferAsync::channelGroupNumber_p
private

Definition at line 156 of file VisBufferAsync.h.

casacore::Block<casacore::Int> casa::VisBufferAsync::channelIncrement_p
private

Definition at line 157 of file VisBufferAsync.h.

casacore::Block<casacore::Int> casa::VisBufferAsync::channelStart_p
private

Definition at line 158 of file VisBufferAsync.h.

casacore::Block<casacore::Int> casa::VisBufferAsync::channelWidth_p
private

Definition at line 159 of file VisBufferAsync.h.

casacore::Vector<casacore::Float> casa::VisBufferAsync::feedpaCached_p
mutableprivate

casacore::Int dataDescriptionId_p;

Definition at line 161 of file VisBufferAsync.h.

casacore::Double casa::VisBufferAsync::feedpaCachedTime_p
mutableprivate

Definition at line 162 of file VisBufferAsync.h.

casacore::Bool casa::VisBufferAsync::isFilling_p
private

Definition at line 163 of file VisBufferAsync.h.

casacore::Vector<casacore::Double> casa::VisBufferAsync::lsrFrequency_p
private

Definition at line 164 of file VisBufferAsync.h.

const casacore::MeasurementSet* casa::VisBufferAsync::measurementSet_p
private

Definition at line 166 of file VisBufferAsync.h.

casacore::MEpoch casa::VisBufferAsync::mEpoch_p
private

Definition at line 165 of file VisBufferAsync.h.

casacore::ROMSColumns* casa::VisBufferAsync::msColumns_p
mutableprivate

Definition at line 167 of file VisBufferAsync.h.

casacore::MSDerivedValues* casa::VisBufferAsync::msd_p
private

Definition at line 168 of file VisBufferAsync.h.

casacore::Int casa::VisBufferAsync::nAntennas_p
private

Definition at line 169 of file VisBufferAsync.h.

casacore::Int casa::VisBufferAsync::nCoh_p
private

Definition at line 170 of file VisBufferAsync.h.

casacore::Bool casa::VisBufferAsync::newArrayId_p
private

Definition at line 171 of file VisBufferAsync.h.

casacore::Bool casa::VisBufferAsync::newFieldId_p
private

Definition at line 172 of file VisBufferAsync.h.

casacore::Bool casa::VisBufferAsync::newSpectralWindow_p
private

Definition at line 173 of file VisBufferAsync.h.

casacore::Int casa::VisBufferAsync::nRowChunk_p
private

Definition at line 174 of file VisBufferAsync.h.

Referenced by nRowChunk().

casacore::Int casa::VisBufferAsync::nSpw_p
private

Definition at line 175 of file VisBufferAsync.h.

casacore::MPosition casa::VisBufferAsync::observatoryPosition_p
private

const casacore::ScalarColumn<casacore::Int> * obsMFreqTypes_p; // [use]

Definition at line 177 of file VisBufferAsync.h.

casacore::Vector<casacore::Float> casa::VisBufferAsync::parangCached_p
mutableprivate

Definition at line 178 of file VisBufferAsync.h.

casacore::Double casa::VisBufferAsync::parangCachedTime_p
mutableprivate

Definition at line 179 of file VisBufferAsync.h.

casacore::Int casa::VisBufferAsync::polarizationId_p
private

Definition at line 180 of file VisBufferAsync.h.

casacore::Vector<casacore::Float> casa::VisBufferAsync::receptor0Angle_p
private

Definition at line 181 of file VisBufferAsync.h.

casacore::Cube<casacore::Double> casa::VisBufferAsync::receptorAngles_p
private

Definition at line 182 of file VisBufferAsync.h.

casacore::Vector<casacore::Int> casa::VisBufferAsync::selectedNVisibilityChannels_p
private

Definition at line 184 of file VisBufferAsync.h.

casacore::Vector<casacore::Int> casa::VisBufferAsync::selectedSpectralWindows_p
private

Definition at line 185 of file VisBufferAsync.h.

casacore::Vector<casacore::Double> casa::VisBufferAsync::selFreq_p
private

Definition at line 183 of file VisBufferAsync.h.

casacore::Bool casa::VisBufferAsync::velSelection_p
private

Definition at line 186 of file VisBufferAsync.h.

casacore::IPosition casa::VisBufferAsync::visibilityShape_p
private

Definition at line 187 of file VisBufferAsync.h.


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