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

#include <VisBuffer2Adapter.h>

Inheritance diagram for casa::vi::VisBuffer2Adapter:
casa::VisBuffer

Public Member Functions

 VisBuffer2Adapter (VisBuffer2 *vb)
 
 VisBuffer2Adapter (const VisBuffer2 *vb)
 
void construct ()
 
 ~VisBuffer2Adapter ()
 
virtual VisBufferassign (const VisBuffer &, casacore::Bool=true)
 Assignment, optionally without copying the data across; with copy=true this is identical to normal assignment operator. More...
 
virtual VisBufferclone () const
 
virtual void invalidate ()
 Invalidate the cache. 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::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 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::Float
feed_pa (casacore::Double time) const
 Note that feed_pa is a function instead of a cached value. More...
 
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::Float parang0 (casacore::Double time) const
 NOMINAL parallactic angle (feed p.a. More...
 
virtual casacore::Vector
< casacore::Float
parang (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 casacore::Vector
< casacore::Double > & 
azel0Vec (casacore::Double, casacore::Vector< casacore::Double > &) const
 
virtual casacore::Vector
< casacore::MDirection
azel (casacore::Double time) const
 
virtual casacore::Matrix
< casacore::Double > & 
azelMat (casacore::Double, casacore::Matrix< casacore::Double > &) const
 
virtual casacore::Double hourang (casacore::Double time) const
 Hour angle for specified time. More...
 
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
 if ignoreconv=true..frequency is served as is in the data frame More...
 
virtual casacore::Int numberCoh () const
 
virtual casacore::MDirectionphaseCenter ()
 
virtual casacore::MDirection phaseCenter () 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::Int polarizationId () 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
 
void fillUvw () 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 &)
 
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 &) 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 &, casacore::MVEpoch &, casacore::MVEpoch &) const
 casacore::Time range More...
 
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 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 > &)
 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 > &, casacore::Int)
 Average channel axis by factor. More...
 
template<class T >
void chanAccCube (casacore::Cube< T > &, casacore::Int)
 Accumulate channel axis by factor, without applying WEIGHT_SPECTRUM even if it is present. More...
 
virtual void chanAveFlagCube (casacore::Cube< casacore::Bool > &, const casacore::Int, const casacore::Bool=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 > &)
 
virtual void formStokes (casacore::Cube< casacore::Float > &)
 
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 &=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 > &)
 Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres) More...
 
virtual void phaseCenterShift (casacore::Double, casacore::Double)
 Rotate visibility phase for phase center offsets (arcsecs) More...
 
virtual void updateCoordInfo (const VisBuffer *=NULL, const casacore::Bool=true)
 Update coordinate info - useful for copied VisBuffers that need to retain some state for later reference. 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 setModelVisCube (casacore::Complex c)
 
virtual void setCorrectedVisCube (casacore::Complex)
 
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...
 
virtual void setModelVisCube (const casacore::Cube< casacore::Complex > &vis)
 
virtual void setCorrectedVisCube (const casacore::Cube< casacore::Complex > &vis)
 
virtual void setFloatDataCube (const casacore::Cube< casacore::Float > &fcube)
 Like the above, but for FLOAT_DATA, keeping it as real floats. More...
 
virtual void setModelVisCube (const casacore::Vector< casacore::Float > &)
 Set model according to a casacore::Stokes vector. More...
 
virtual void refModelVis (const casacore::Matrix< CStokesVector > &)
 Reference external model visibilities. More...
 
virtual void removeScratchCols ()
 Remove scratch cols data from vb. More...
 
virtual const
casacore::ROMSColumns
msColumns () const
 Access the current casacore::ROMSColumns object via VisIter. More...
 
virtual casacore::Int numberAnt () const
 
virtual void allSelectedSpectralWindows (casacore::Vector< casacore::Int > &spectralWindows, casacore::Vector< casacore::Int > &nChannels)
 Get all selected spectral windows not just the one in the actual buffer. More...
 
virtual void getChannelSelection (casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &) const
 
void allSelectedSpectralWindows (casacore::Vector< casacore::Int > &spws, casacore::Vector< casacore::Int > &nvischan) const
 
virtual 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 newMS () const
 checked if the ms has changed since the last chunk processed More...
 
virtual casacore::String msName (casacore::Bool=false) const
 get the name of the ms the buffer is at empty string if no visiter is attached More...
 
virtual casacore::Bool newArrayId () const
 
virtual casacore::Bool newFieldId () const
 
virtual casacore::Bool newSpectralWindow () const
 
- 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 void attachToVisIter (ROVisibilityIterator &iter)
 Attach to a VisIter. More...
 
virtual void detachFromVisIter ()
 
virtual casacore::Int nRow () const
 
virtual casacore::Int nRowChunk () 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::MDirectionfirstDirection1 ()
 
virtual const
casacore::MDirection
firstDirection1 () 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
 
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
 
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...
 
void chanAveFlagCategory (casacore::Array< casacore::Bool > &flagcat, const casacore::Int nChanOut)
 Doesn't do anything if flagcat is degenerate. More...
 
void copyCoordInfo (const VisBuffer &other, casacore::Bool force=false)
 
void allSelectedSpectralWindows (casacore::Vector< casacore::Int > &spws, casacore::Vector< casacore::Int > &nvischan) const
 

Private Attributes

const casacore::ROMSColumnsmsColumns_p
 
casacore::Vector< casacore::IntnChannels_p
 
casacore::Int nChannelsScalar_p
 
casacore::Int nCorr_p
 
casacore::Int nRows_p
 
casacore::Int spectralWindow_p
 
casacore::Vector< casacore::IntspectralWindows_p
 
casacore::Vector
< casacore::RigidVector
< casacore::Double, 3 > > 
uvw_p
 
const vi::VisBuffer2vb2_p
 
vi::VisBuffer2vb2Rw_p
 

Additional Inherited Members

- Protected Member Functions inherited from casa::VisBuffer
virtual casacore::Bool checkMSId ()
 
virtual void checkVisIter (const char *func, const char *file, int line, const char *extra="") const
 
virtual void copyCache (const VisBuffer &other, casacore::Bool force)
 
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)
 

Detailed Description

Definition at line 31 of file VisBuffer2Adapter.h.

Constructor & Destructor Documentation

casa::vi::VisBuffer2Adapter::VisBuffer2Adapter ( VisBuffer2 vb)
inline

Definition at line 35 of file VisBuffer2Adapter.h.

References construct().

casa::vi::VisBuffer2Adapter::VisBuffer2Adapter ( const VisBuffer2 vb)
inline

Definition at line 39 of file VisBuffer2Adapter.h.

References construct().

casa::vi::VisBuffer2Adapter::~VisBuffer2Adapter ( )
inline

Definition at line 57 of file VisBuffer2Adapter.h.

Member Function Documentation

virtual void casa::vi::VisBuffer2Adapter::allSelectedSpectralWindows ( casacore::Vector< casacore::Int > &  spectralWindows,
casacore::Vector< casacore::Int > &  nChannels 
)
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 451 of file VisBuffer2Adapter.h.

References casacore::Vector< T >::assign(), nChannels_p, and spectralWindows_p.

void casa::vi::VisBuffer2Adapter::allSelectedSpectralWindows ( casacore::Vector< casacore::Int > &  spws,
casacore::Vector< casacore::Int > &  nvischan 
) const
virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::antenna1 ( void  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 81 of file VisBuffer2Adapter.h.

References antenna1(), and vb2_p.

Referenced by antenna1().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::antenna1 ( void  ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 82 of file VisBuffer2Adapter.h.

References antenna1(), and vb2_p.

Referenced by antenna1().

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::antenna2 ( void  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 84 of file VisBuffer2Adapter.h.

References antenna2(), and vb2_p.

Referenced by antenna2().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::antenna2 ( void  ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 85 of file VisBuffer2Adapter.h.

References antenna2(), and vb2_p.

Referenced by antenna2().

virtual casacore::Vector<casacore::Int> casa::vi::VisBuffer2Adapter::antIdRange ( ) const
inlinevirtual

Antenna id.

range (includes both ANTENNA1 and ANTENNA2 columns)

Reimplemented from casa::VisBuffer.

Definition at line 341 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Int casa::vi::VisBuffer2Adapter::arrayId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 140 of file VisBuffer2Adapter.h.

References arrayId(), and vb2_p.

Referenced by arrayId().

virtual casacore::Int& casa::vi::VisBuffer2Adapter::arrayIdRef ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 138 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual VisBuffer& casa::vi::VisBuffer2Adapter::assign ( const VisBuffer vb,
casacore::Bool  copy = true 
)
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 59 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::MDirection> casa::vi::VisBuffer2Adapter::azel ( casacore::Double  time) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 128 of file VisBuffer2Adapter.h.

References azel(), and vb2_p.

Referenced by azel().

virtual casacore::MDirection casa::vi::VisBuffer2Adapter::azel0 ( casacore::Double  time) const
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 126 of file VisBuffer2Adapter.h.

References azel0(), and vb2_p.

Referenced by azel0().

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::azel0Vec ( casacore::Double  ,
casacore::Vector< casacore::Double > &   
) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 127 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Matrix<casacore::Double>& casa::vi::VisBuffer2Adapter::azelMat ( casacore::Double  ,
casacore::Matrix< casacore::Double > &   
) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 129 of file VisBuffer2Adapter.h.

References IllegalOperation.

template<class T >
void casa::vi::VisBuffer2Adapter::chanAccCube ( casacore::Cube< T > &  ,
casacore::Int   
)
inline

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

It is primarily intended for averaging WEIGHT_SPECTRUM itself.

Definition at line 373 of file VisBuffer2Adapter.h.

References IllegalOperation.

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

Doesn't do anything if flagcat is degenerate.

virtual void casa::vi::VisBuffer2Adapter::chanAveFlagCube ( casacore::Cube< casacore::Bool > &  ,
const casacore::Int  ,
const casacore::Bool  = true 
)
inlinevirtual

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

Definition at line 378 of file VisBuffer2Adapter.h.

References IllegalOperation.

template<class T >
void casa::vi::VisBuffer2Adapter::chanAveVisCube ( casacore::Cube< T > &  ,
casacore::Int   
)
inline

Average channel axis by factor.

Definition at line 368 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::channel ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 76 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::channel ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 77 of file VisBuffer2Adapter.h.

References IllegalOperation.

void casa::vi::VisBuffer2Adapter::channelAve ( const casacore::Matrix< casacore::Int > &  )
inline

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!

Definition at line 365 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::SquareMatrix<casacore::Complex, 2> >& casa::vi::VisBuffer2Adapter::CJones ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 105 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::SquareMatrix<casacore::Complex, 2> >& casa::vi::VisBuffer2Adapter::CJones ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 106 of file VisBuffer2Adapter.h.

References vb2_p.

virtual VisBuffer* casa::vi::VisBuffer2Adapter::clone ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 61 of file VisBuffer2Adapter.h.

References IllegalOperation.

void casa::vi::VisBuffer2Adapter::construct ( )
inline
virtual casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::correctedVisCube ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 297 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::correctedVisCube ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 298 of file VisBuffer2Adapter.h.

References vb2_p, and casa::MSTransformations::visCubeCorrected.

virtual casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::correctedVisibility ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 285 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::correctedVisibility ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 286 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::corrType ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 210 of file VisBuffer2Adapter.h.

References vb2_p.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::corrType ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 211 of file VisBuffer2Adapter.h.

References vb2_p.

casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::dataCube ( const casacore::MS::PredefinedColumns  whichcol = casacore::MS::DATA)

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.

const casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::dataCube ( const casacore::MS::PredefinedColumns  whichcol = casacore::MS::DATA) const
virtual casacore::Int casa::vi::VisBuffer2Adapter::dataDescriptionId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 223 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Int& casa::vi::VisBuffer2Adapter::dataDescriptionIdRef ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 222 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::MDirection>& casa::vi::VisBuffer2Adapter::direction1 ( )
inlinevirtual

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

Definition at line 114 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisBuffer2Adapter::direction1 ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 115 of file VisBuffer2Adapter.h.

References direction1(), and vb2_p.

Referenced by direction1().

virtual casacore::Vector<casacore::MDirection>& casa::vi::VisBuffer2Adapter::direction2 ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 117 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisBuffer2Adapter::direction2 ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 118 of file VisBuffer2Adapter.h.

References direction2(), and vb2_p.

Referenced by direction2().

virtual casacore::Bool casa::vi::VisBuffer2Adapter::existsWeightSpectrum ( ) const
inlinevirtual

Is a valid WEIGHT_SPECTRUM available?

Reimplemented from casa::VisBuffer.

Definition at line 320 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::exposure ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 233 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::exposure ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 234 of file VisBuffer2Adapter.h.

References exposure(), and vb2_p.

Referenced by exposure().

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::feed1 ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 87 of file VisBuffer2Adapter.h.

References feed1(), and vb2_p.

Referenced by feed1().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::feed1 ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 88 of file VisBuffer2Adapter.h.

References feed1(), and vb2_p.

Referenced by feed1().

virtual casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::feed1_pa ( )
inlinevirtual

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

Definition at line 99 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::feed1_pa ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 100 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::feed2 ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 90 of file VisBuffer2Adapter.h.

References feed2(), and vb2_p.

Referenced by feed2().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::feed2 ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 91 of file VisBuffer2Adapter.h.

References feed2(), and vb2_p.

Referenced by feed2().

virtual casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::feed2_pa ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 102 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::feed2_pa ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 103 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Vector<casacore::Float> casa::vi::VisBuffer2Adapter::feed_pa ( casacore::Double  time) const
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 109 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::fieldId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 134 of file VisBuffer2Adapter.h.

References fieldId(), and vb2_p.

Referenced by fieldId().

virtual casacore::Int& casa::vi::VisBuffer2Adapter::fieldIdRef ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 136 of file VisBuffer2Adapter.h.

References IllegalOperation.

void casa::vi::VisBuffer2Adapter::fillUvw ( ) const
inline

Definition at line 259 of file VisBuffer2Adapter.h.

References casacore::Matrix< T >::shape(), casa::vi::VisBuffer2::uvw(), uvw_p, and vb2_p.

Referenced by uvw().

virtual casacore::Matrix<casacore::Bool>& casa::vi::VisBuffer2Adapter::flag ( void  )
inlinevirtual

Return flag for each channel & row.

Reimplemented from casa::VisBuffer.

Definition at line 143 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<casacore::Bool>& casa::vi::VisBuffer2Adapter::flag ( void  ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 144 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Array<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagCategory ( )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 154 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Array<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagCategory ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 155 of file VisBuffer2Adapter.h.

References flagCategory(), and vb2_p.

Referenced by flagCategory().

virtual casacore::Cube<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagCube ( )
inlinevirtual

Return flag for each polarization, channel and row.

Reimplemented from casa::VisBuffer.

Definition at line 147 of file VisBuffer2Adapter.h.

References flagCube(), and vb2_p.

Referenced by flagCube().

virtual const casacore::Cube<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagCube ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 148 of file VisBuffer2Adapter.h.

References flagCube(), and vb2_p.

Referenced by flagCube().

virtual casacore::Vector<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagRow ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 150 of file VisBuffer2Adapter.h.

References flagRow(), and vb2_p.

Referenced by flagRow().

virtual const casacore::Vector<casacore::Bool>& casa::vi::VisBuffer2Adapter::flagRow ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 151 of file VisBuffer2Adapter.h.

References flagRow(), and vb2_p.

Referenced by flagRow().

virtual casacore::Cube<casacore::Float>& casa::vi::VisBuffer2Adapter::floatDataCube ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 308 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Cube<casacore::Float>& casa::vi::VisBuffer2Adapter::floatDataCube ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 309 of file VisBuffer2Adapter.h.

References vb2_p, and casa::MSTransformations::visCubeFloat.

virtual void casa::vi::VisBuffer2Adapter::formStokes ( )
inlinevirtual

Form casacore::Stokes parameters from correlations (these are preliminary versions)

Reimplemented from casa::VisBuffer.

Definition at line 386 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::formStokes ( casacore::Cube< casacore::Complex > &  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 388 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::formStokes ( casacore::Cube< casacore::Float > &  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 389 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::formStokesWeightandFlag ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 387 of file VisBuffer2Adapter.h.

References IllegalOperation.

void casa::vi::VisBuffer2Adapter::freqAveCubes ( )
inline

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

Definition at line 359 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::freqAverage ( )
inlinevirtual

Frequency average the buffer (visibility() column only)

Reimplemented from casa::VisBuffer.

Definition at line 356 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::frequency ( )
inlinevirtual

Gets SPECTRAL_WINDOW/CHAN_FREQ (in Hz, acc.

to the casacore::MS def'n v.2).

Reimplemented from casa::VisBuffer.

Definition at line 174 of file VisBuffer2Adapter.h.

References casa::vi::VisBuffer2::getFrequencies(), and vb2_p.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::frequency ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 177 of file VisBuffer2Adapter.h.

References casa::vi::VisBuffer2::getFrequencies(), and vb2_p.

virtual void casa::vi::VisBuffer2Adapter::getChannelSelection ( casacore::Block< casacore::Vector< casacore::Int > > &  ,
casacore::Block< casacore::Vector< casacore::Int > > &  ,
casacore::Block< casacore::Vector< casacore::Int > > &  ,
casacore::Block< casacore::Vector< casacore::Int > > &  ,
casacore::Block< casacore::Vector< casacore::Int > > &   
) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 457 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Double casa::vi::VisBuffer2Adapter::hourang ( casacore::Double  time) const
inlinevirtual

Hour angle for specified time.

Reimplemented from casa::VisBuffer.

Definition at line 132 of file VisBuffer2Adapter.h.

References hourang(), and vb2_p.

Referenced by hourang().

virtual casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::imagingWeight ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 325 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::imagingWeight ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 326 of file VisBuffer2Adapter.h.

References imagingWeight(), and vb2_p.

Referenced by imagingWeight().

virtual void casa::vi::VisBuffer2Adapter::invalidate ( )
inlinevirtual

Invalidate the cache.

Reimplemented from casa::VisBuffer.

Definition at line 63 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::lsrFrequency ( const casacore::Int spw,
casacore::Vector< casacore::Double > &  freq,
casacore::Bool convert,
const casacore::Bool  ignoreConv = false 
) const
inlinevirtual
virtual casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::modelVisCube ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 291 of file VisBuffer2Adapter.h.

References vb2_p, and casa::vi::VisBuffer2::visCubeModel().

virtual casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::modelVisCube ( const casacore::Bool )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 293 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::modelVisCube ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 295 of file VisBuffer2Adapter.h.

References vb2_p, and casa::vi::VisBuffer2::visCubeModel().

virtual casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::modelVisibility ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 282 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::modelVisibility ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 283 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::ROMSColumns& casa::vi::VisBuffer2Adapter::msColumns ( ) const
inlinevirtual

Access the current casacore::ROMSColumns object via VisIter.

Reimplemented from casa::VisBuffer.

Definition at line 442 of file VisBuffer2Adapter.h.

References Assert, and msColumns_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::msId ( ) const
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 466 of file VisBuffer2Adapter.h.

References msId(), and vb2_p.

Referenced by msId().

virtual casacore::String casa::vi::VisBuffer2Adapter::msName ( casacore::Bool  = false) const
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 471 of file VisBuffer2Adapter.h.

References msName(), and vb2_p.

Referenced by msName().

virtual casacore::Int& casa::vi::VisBuffer2Adapter::nChannel ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 73 of file VisBuffer2Adapter.h.

References nChannelsScalar_p, and vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::nChannel ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 74 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Int& casa::vi::VisBuffer2Adapter::nCorr ( )
inlinevirtual

Access functions.

Reimplemented from casa::VisBuffer.

Definition at line 70 of file VisBuffer2Adapter.h.

References nCorr_p, casa::vi::VisBuffer2::nCorrelations(), and vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::nCorr ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 71 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Bool casa::vi::VisBuffer2Adapter::newArrayId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 473 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Bool casa::vi::VisBuffer2Adapter::newFieldId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 474 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Bool casa::vi::VisBuffer2Adapter::newMS ( ) const
inlinevirtual

checked if the ms has changed since the last chunk processed

Reimplemented from casa::VisBuffer.

Definition at line 469 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Bool casa::vi::VisBuffer2Adapter::newSpectralWindow ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 475 of file VisBuffer2Adapter.h.

References vb2_p.

virtual void casa::vi::VisBuffer2Adapter::normalize ( const casacore::Bool = false)
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 398 of file VisBuffer2Adapter.h.

References CheckWritability, normalize(), and vb2Rw_p.

Referenced by normalize().

virtual casacore::Int& casa::vi::VisBuffer2Adapter::nRow ( )
inlinevirtual

virtual casacore::Int & nCat() { return nCatOK_p ? nCat_p : fillnCat(); } virtual casacore::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 from casa::VisBuffer.

Definition at line 79 of file VisBuffer2Adapter.h.

References casa::vi::VisBuffer2::nRows(), nRows_p, and vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::numberAnt ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 448 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::numberCoh ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 203 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::observationId ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 167 of file VisBuffer2Adapter.h.

References observationId(), and vb2_p.

Referenced by observationId().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::observationId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 168 of file VisBuffer2Adapter.h.

References observationId(), and vb2_p.

Referenced by observationId().

virtual casacore::Vector<casacore::Float> casa::vi::VisBuffer2Adapter::parang ( casacore::Double  time) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 123 of file VisBuffer2Adapter.h.

References parang(), and vb2_p.

Referenced by parang().

virtual casacore::Float casa::vi::VisBuffer2Adapter::parang0 ( casacore::Double  time) const
inlinevirtual

NOMINAL parallactic angle (feed p.a.

offset NOT included)

Reimplemented from casa::VisBuffer.

Definition at line 122 of file VisBuffer2Adapter.h.

References parang0(), and vb2_p.

Referenced by parang0().

virtual casacore::MDirection& casa::vi::VisBuffer2Adapter::phaseCenter ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 205 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::MDirection casa::vi::VisBuffer2Adapter::phaseCenter ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 206 of file VisBuffer2Adapter.h.

References phaseCenter(), and vb2_p.

Referenced by phaseCenter().

virtual void casa::vi::VisBuffer2Adapter::phaseCenterShift ( const casacore::Vector< casacore::Double > &  )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 404 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::phaseCenterShift ( casacore::Double  ,
casacore::Double   
)
inlinevirtual

Rotate visibility phase for phase center offsets (arcsecs)

Reimplemented from casa::VisBuffer.

Definition at line 406 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Int casa::vi::VisBuffer2Adapter::polarizationId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 221 of file VisBuffer2Adapter.h.

References polarizationId(), and vb2_p.

Referenced by polarizationId().

virtual casacore::Int casa::vi::VisBuffer2Adapter::polFrame ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 208 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::processorId ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 164 of file VisBuffer2Adapter.h.

References processorId(), and vb2_p.

Referenced by processorId().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::processorId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 165 of file VisBuffer2Adapter.h.

References processorId(), and vb2_p.

Referenced by processorId().

virtual void casa::vi::VisBuffer2Adapter::refModelVis ( const casacore::Matrix< CStokesVector > &  )
inlinevirtual

Reference external model visibilities.

Reimplemented from casa::VisBuffer.

Definition at line 436 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::removeScratchCols ( )
inlinevirtual

Remove scratch cols data from vb.

Reimplemented from casa::VisBuffer.

Definition at line 439 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::resetWeightMat ( )
inlinevirtual

Fill weightMat according to sigma column.

Reimplemented from casa::VisBuffer.

Definition at line 401 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::uInt>& casa::vi::VisBuffer2Adapter::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.

Definition at line 349 of file VisBuffer2Adapter.h.

References IllegalOperation.

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

Reimplemented from casa::VisBuffer.

Definition at line 351 of file VisBuffer2Adapter.h.

References rowIds(), and vb2_p.

Referenced by rowIds().

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::scan ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 157 of file VisBuffer2Adapter.h.

References scan(), and vb2_p.

Referenced by scan().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::scan ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 158 of file VisBuffer2Adapter.h.

References scan(), and vb2_p.

Referenced by scan().

virtual casacore::Int casa::vi::VisBuffer2Adapter::scan0 ( )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 162 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::setCorrectedVisCube ( casacore::Complex  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 421 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::setCorrectedVisCube ( const casacore::Cube< casacore::Complex > &  vis)
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 427 of file VisBuffer2Adapter.h.

References CheckWritability, and vb2Rw_p.

virtual void casa::vi::VisBuffer2Adapter::setFloatDataCube ( const casacore::Cube< casacore::Float > &  fcube)
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 430 of file VisBuffer2Adapter.h.

References CheckWritability, and vb2Rw_p.

virtual void casa::vi::VisBuffer2Adapter::setModelVisCube ( casacore::Complex  c)
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 420 of file VisBuffer2Adapter.h.

References CheckWritability, and vb2Rw_p.

virtual void casa::vi::VisBuffer2Adapter::setModelVisCube ( const casacore::Cube< casacore::Complex > &  vis)
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 426 of file VisBuffer2Adapter.h.

References CheckWritability, and vb2Rw_p.

virtual void casa::vi::VisBuffer2Adapter::setModelVisCube ( const casacore::Vector< casacore::Float > &  )
inlinevirtual

Set model according to a casacore::Stokes vector.

Reimplemented from casa::VisBuffer.

Definition at line 433 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::setVisCube ( casacore::Complex  c)
inlinevirtual

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.

Definition at line 419 of file VisBuffer2Adapter.h.

References CheckWritability, setVisCube(), and vb2Rw_p.

Referenced by setVisCube().

virtual void casa::vi::VisBuffer2Adapter::setVisCube ( const casacore::Cube< casacore::Complex > &  vis)
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 425 of file VisBuffer2Adapter.h.

References CheckWritability, setVisCube(), and vb2Rw_p.

Referenced by setVisCube().

virtual casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::sigma ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 213 of file VisBuffer2Adapter.h.

References IllegalOperation.

Referenced by sigmaMat().

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::sigma ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 214 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::sigmaMat ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 216 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::sigmaMat ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 217 of file VisBuffer2Adapter.h.

References sigma(), and vb2_p.

virtual void casa::vi::VisBuffer2Adapter::sortCorr ( )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 393 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Int& casa::vi::VisBuffer2Adapter::spectralWindow ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 219 of file VisBuffer2Adapter.h.

References spectralWindow_p, casa::vi::VisBuffer2::spectralWindows(), and vb2_p.

virtual casacore::Int casa::vi::VisBuffer2Adapter::spectralWindow ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 220 of file VisBuffer2Adapter.h.

References vb2_p.

virtual casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::stateId ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 170 of file VisBuffer2Adapter.h.

References stateId(), and vb2_p.

Referenced by stateId().

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBuffer2Adapter::stateId ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 171 of file VisBuffer2Adapter.h.

References stateId(), and vb2_p.

Referenced by stateId().

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::time ( void  )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 224 of file VisBuffer2Adapter.h.

References IllegalOperation.

Referenced by lsrFrequency().

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::time ( void  ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 225 of file VisBuffer2Adapter.h.

References time(), and vb2_p.

Referenced by time().

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::timeCentroid ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 227 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::timeCentroid ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 228 of file VisBuffer2Adapter.h.

References timeCentroid(), and vb2_p.

Referenced by timeCentroid().

virtual casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::timeInterval ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 230 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBuffer2Adapter::timeInterval ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 231 of file VisBuffer2Adapter.h.

References timeInterval(), and vb2_p.

Referenced by timeInterval().

virtual casacore::Bool casa::vi::VisBuffer2Adapter::timeRange ( casacore::MEpoch ,
casacore::MVEpoch ,
casacore::MVEpoch  
) const
inlinevirtual

casacore::Time range

Reimplemented from casa::VisBuffer.

Definition at line 344 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::unSortCorr ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 394 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual void casa::vi::VisBuffer2Adapter::updateCoordInfo ( const VisBuffer = NULL,
const casacore::Bool  = true 
)
inlinevirtual

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.

Definition at line 415 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::RigidVector<casacore::Double, 3> >& casa::vi::VisBuffer2Adapter::uvw ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 236 of file VisBuffer2Adapter.h.

References fillUvw(), and uvw_p.

Referenced by uvwMat().

virtual const casacore::Vector<casacore::RigidVector<casacore::Double, 3> >& casa::vi::VisBuffer2Adapter::uvw ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 247 of file VisBuffer2Adapter.h.

References fillUvw(), and uvw_p.

virtual casacore::Matrix<casacore::Double>& casa::vi::VisBuffer2Adapter::uvwMat ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 276 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<casacore::Double>& casa::vi::VisBuffer2Adapter::uvwMat ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 277 of file VisBuffer2Adapter.h.

References uvw(), and vb2_p.

virtual casacore::Vector<casacore::Int> casa::vi::VisBuffer2Adapter::vecIntRange ( const MSCalEnums::colDef ) const
inlinevirtual

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

Definition at line 338 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::visCube ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 288 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBuffer2Adapter::visCube ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 289 of file VisBuffer2Adapter.h.

References vb2_p, and visCube().

Referenced by visCube().

virtual casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::visibility ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 279 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<CStokesVector>& casa::vi::VisBuffer2Adapter::visibility ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 280 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::weight ( )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 312 of file VisBuffer2Adapter.h.

References IllegalOperation.

Referenced by weightMat().

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBuffer2Adapter::weight ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 313 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Cube<casacore::Float>& casa::vi::VisBuffer2Adapter::weightCube ( )
inlinevirtual

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

Reimplemented from casa::VisBuffer.

Definition at line 328 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::weightMat ( )
inlinevirtual

Returns the nPol_p x curNumRow_p weight matrix.

Reimplemented from casa::VisBuffer.

Definition at line 316 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBuffer2Adapter::weightMat ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 317 of file VisBuffer2Adapter.h.

References vb2_p, and weight().

virtual casacore::Cube<casacore::Float>& casa::vi::VisBuffer2Adapter::weightSpectrum ( )
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 322 of file VisBuffer2Adapter.h.

References IllegalOperation.

virtual const casacore::Cube<casacore::Float>& casa::vi::VisBuffer2Adapter::weightSpectrum ( ) const
inlinevirtual

Reimplemented from casa::VisBuffer.

Definition at line 323 of file VisBuffer2Adapter.h.

References vb2_p, and weightSpectrum().

Referenced by weightSpectrum().

Member Data Documentation

const casacore::ROMSColumns* casa::vi::VisBuffer2Adapter::msColumns_p
private

Definition at line 483 of file VisBuffer2Adapter.h.

Referenced by construct(), and msColumns().

casacore::Vector<casacore::Int> casa::vi::VisBuffer2Adapter::nChannels_p
private

Definition at line 484 of file VisBuffer2Adapter.h.

Referenced by allSelectedSpectralWindows(), and construct().

casacore::Int casa::vi::VisBuffer2Adapter::nChannelsScalar_p
private

Definition at line 485 of file VisBuffer2Adapter.h.

Referenced by nChannel().

casacore::Int casa::vi::VisBuffer2Adapter::nCorr_p
private

Definition at line 486 of file VisBuffer2Adapter.h.

Referenced by nCorr().

casacore::Int casa::vi::VisBuffer2Adapter::nRows_p
private

Definition at line 487 of file VisBuffer2Adapter.h.

Referenced by nRow().

casacore::Int casa::vi::VisBuffer2Adapter::spectralWindow_p
private

Definition at line 488 of file VisBuffer2Adapter.h.

Referenced by spectralWindow().

casacore::Vector<casacore::Int> casa::vi::VisBuffer2Adapter::spectralWindows_p
private

Definition at line 489 of file VisBuffer2Adapter.h.

Referenced by allSelectedSpectralWindows(), and construct().

casacore::Vector<casacore::RigidVector<casacore::Double, 3> > casa::vi::VisBuffer2Adapter::uvw_p
mutableprivate

Definition at line 490 of file VisBuffer2Adapter.h.

Referenced by fillUvw(), and uvw().

const vi::VisBuffer2* casa::vi::VisBuffer2Adapter::vb2_p
private
vi::VisBuffer2* casa::vi::VisBuffer2Adapter::vb2Rw_p
private

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