#include <VisBuffer.h>
Inheritance diagram for casa::VisBuffer:


Part of API
VisBuffer is a buffer for visibility data
This class contains 'one iteration' of the VisibilityIterator It is a modifiable buffer of values to which calibration and averaging can be applied. This allows processing of the data in larger blocks, avoiding some overheads for processing per visibility point or spectrum.
See MeasurementEquations for more details on how the VisBuffer is to be used.
Definition at line 79 of file VisBuffer.h.
Public Member Functions | |
| VisBuffer () | |
| Create empty VisBuffer you can assign to or attach. | |
| VisBuffer (ROVisibilityIterator &iter) | |
| Construct VisBuffer for a particular VisibilityIterator The buffer will remain synchronized with the iterator. | |
| VisBuffer (const VisBuffer &vb) | |
| Copy construct, looses synchronization with iterator: only use buffer for current iteration (or reattach). | |
| ~VisBuffer () | |
| Destructor (detaches from VisIter). | |
| VisBuffer & | operator= (const VisBuffer &vb) |
| Assignment, looses synchronization with iterator: only use buffer for current iteration (or reattach). | |
| VisBuffer & | assign (const VisBuffer &vb, Bool copy=True) |
| Assignment, optionally without copying the data across; with copy=True this is identical to normal assignment operator. | |
| VisBuffer & | operator-= (const VisBuffer &vb) |
| subtraction: return the difference of the visibilities, flags of this and other are or-ed. | |
| void | attachToVisIter (ROVisibilityIterator &iter) |
| Attach to a VisIter. | |
| void | invalidate () |
| Invalidate the cache. | |
| void | freqAverage () |
| Frequency average the buffer (visibility() column only). | |
| void | freqAveCubes () |
| Frequency average the buffer (visCube and [if present] modelVisCube). | |
| void | channelAve (Float factor) |
| Average channel axis by factor. | |
| void | chanAveVisCube (Cube< Complex > &data, Int width, Int nChanOut) |
| void | chanAveFlagCube (Cube< Bool > &flagcube, Int width, Int nChanOut) |
| void | sortCorr () |
| Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations--use with care!). | |
| void | unSortCorr () |
| void | normalize (const Bool &phaseOnly=False) |
| Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp). | |
| void | resetWeightMat () |
| Fill weightMat according to sigma column. | |
| void | updateCoordInfo () |
| Update coordinate info - useful for copied VisBuffers that need to retain some state for later reference. | |
| void | setVisCube (Complex c) |
| Set the visibility to a constant, note that this only changes the buffer, no values are written back to tables from here. | |
| void | setModelVisCube (Complex c) |
| void | setCorrectedVisCube (Complex c) |
| void | setVisCube (const Cube< Complex > &vis) |
| Set the visibility, note that this only changes the buffer, no values are written back to tables from here. | |
| void | setModelVisCube (const Cube< Complex > &vis) |
| void | setCorrectedVisCube (const Cube< Complex > &vis) |
| void | refModelVis (const Matrix< CStokesVector > &mvis) |
| Reference external model visibilities. | |
| void | removeScratchCols () |
| Remove scratch cols data from vb. | |
| const ROMSColumns & | msColumns () const |
| Access the current ROMSColumns object via VisIter. | |
| void | allSelectedSpectralWindows (Vector< Int > &spws, Vector< Int > &nvischan) |
| Get all selected spectral windows not just the one in the actual buffer. | |
| void | allSelectedSpectralWindows (Vector< Int > &spws, Vector< Int > &nvischan) const |
| Int | msId () const |
| Return the actual msid, useful if using multiple ms to monitor which ms in the list is being dealt with. | |
| Bool | newMS () const |
| checked if the ms has changed since the last chunk processed | |
| Int & | nCorr () |
| Access functions. | |
| Int | nCorr () const |
| Int & | nChannel () |
| Int | nChannel () const |
| Vector< Int > & | channel () |
| const Vector< Int > & | channel () const |
| Int & | nRow () |
| Int | nRow () const |
| Vector< Int > & | antenna1 () |
| const Vector< Int > & | antenna1 () const |
| Vector< Int > & | antenna2 () |
| const Vector< Int > & | antenna2 () const |
| Vector< Int > & | feed1 () |
| const Vector< Int > & | feed1 () const |
| Vector< Int > & | feed2 () |
| const Vector< Int > & | feed2 () const |
| Vector< Float > & | feed1_pa () |
| feed1_pa() and feed2_pa() return an array of parallactic angles (each corresponds to the first receptor of the feed) one for each row in the current buffer. | |
| const Vector< Float > & | feed1_pa () const |
| Vector< Float > & | feed2_pa () |
| const Vector< Float > & | feed2_pa () const |
| Vector< SquareMatrix< Complex, 2 > > & | CJones () |
| const Vector< SquareMatrix< Complex, 2 > > & | CJones () const |
| const Vector< Float > & | feed_pa (Double time) const |
| Note that feed_pa is a function instead of a cached value. | |
| Vector< MDirection > & | direction1 () |
| direction1() and direction2() return arrays of directions where the first and the second antenna/feed are pointed to. | |
| const Vector< MDirection > & | direction1 () const |
| Vector< MDirection > & | direction2 () |
| const Vector< MDirection > & | direction2 () const |
| const Vector< MDirection > & | azel (Double time) const |
| Note that azel is a function instead of a cached value. | |
| Matrix< Double > & | azelMat (Double time, Matrix< Double > &azelMat) const |
| Int | fieldId () const |
| Int | arrayId () const |
| Matrix< Bool > & | flag () |
| const Matrix< Bool > & | flag () const |
| Cube< Bool > & | flagCube () |
| const Cube< Bool > & | flagCube () const |
| Vector< Bool > & | flagRow () |
| const Vector< Bool > & | flagRow () const |
| Vector< Int > & | scan () |
| const Vector< Int > & | scan () const |
| Int | scan0 () |
| scalar version for convenience, when scan known constant for entire iteration/buffer. | |
| Vector< Double > & | frequency () |
| const Vector< Double > & | frequency () const |
| Vector< Double > & | lsrFrequency () |
| const Vector< Double > & | lsrFrequency () const |
| void | lsrFrequency (const Int &spw, Vector< Double > &freq, Bool convert=False) |
| the following method is to convert the observed frequencies This conversion may not be accurate for some frame conversion like topo to lsr except if the spw is in the actual buffer | |
| void | lsrFrequency (const Int &spw, Vector< Double > &freq, Bool convert=False) const |
| MDirection & | phaseCenter () |
| const MDirection & | phaseCenter () const |
| Int | polFrame () const |
| Vector< Int > & | corrType () |
| const Vector< Int > & | corrType () const |
| Vector< Float > & | sigma () |
| const Vector< Float > & | sigma () const |
| Matrix< Float > & | sigmaMat () |
| const Matrix< Float > & | sigmaMat () const |
| Int & | spectralWindow () |
| Int | spectralWindow () const |
| Int | dataDescriptionId () const |
| Vector< Double > & | time () |
| const Vector< Double > & | time () const |
| Vector< Double > & | timeInterval () |
| const Vector< Double > & | timeInterval () const |
| Vector< RigidVector< Double, 3 > > & | uvw () |
| const Vector< RigidVector< Double, 3 > > & | uvw () const |
| Matrix< Double > & | uvwMat () |
| const Matrix< Double > & | uvwMat () const |
| Matrix< CStokesVector > & | visibility () |
| const Matrix< CStokesVector > & | visibility () const |
| Matrix< CStokesVector > & | modelVisibility () |
| const Matrix< CStokesVector > & | modelVisibility () const |
| Matrix< CStokesVector > & | correctedVisibility () |
| const Matrix< CStokesVector > & | correctedVisibility () const |
| Cube< Complex > & | visCube () |
| const Cube< Complex > & | visCube () const |
| Cube< Complex > & | modelVisCube () |
| Cube< Complex > & | modelVisCube (const Bool &matchVisCubeShape) |
| const Cube< Complex > & | modelVisCube () const |
| Cube< Complex > & | correctedVisCube () |
| const Cube< Complex > & | correctedVisCube () const |
| Vector< Float > & | weight () |
| const Vector< Float > & | weight () const |
| Matrix< Float > & | weightMat () |
| const Matrix< Float > & | weightMat () const |
| Cube< Float > & | weightSpectrum () |
| const Cube< Float > & | weightSpectrum () const |
| Matrix< Float > & | imagingWeight () |
| const Matrix< Float > & | imagingWeight () const |
| Cube< Float > & | weightCube () |
| Vector< Int > | vecIntRange (const MSCalEnums::colDef &calEnum) const |
| Utility functions to provide coordinate or column ranges of the data in the VisBuffer. | |
| Vector< Int > | antIdRange () const |
| Antenna id. | |
| Bool | timeRange (MEpoch &rTime, MVEpoch &rTimeEP, MVEpoch &rInterval) const |
| Time range. | |
| Vector< uInt > & | rowIds () |
| Return the row Ids from the original ms. | |
| const Vector< uInt > & | rowIds () const |
Private Member Functions | |
| void | validate () |
| validate the cache | |
| Int & | fillnCorr () |
| functions to fill cache from iterator | |
| Int & | fillnChannel () |
| Vector< Int > & | fillChannel () |
| Int & | fillnRow () |
| Vector< Int > & | fillAnt1 () |
| Vector< Int > & | fillAnt2 () |
| Vector< Int > & | fillFeed1 () |
| Vector< Int > & | fillFeed2 () |
| Vector< Float > & | fillFeed1_pa () |
| calling fillFeed1_pa or fillFeed2_pa will fill antenna, feed and time caches automatically | |
| Vector< Float > & | fillFeed2_pa () |
| Vector< MDirection > & | fillDirection1 () |
| calling direction1 or direction2 will fill antenna,feed, time and pa caches automatically | |
| Vector< MDirection > & | fillDirection2 () |
| Vector< SquareMatrix< Complex, 2 > > & | fillCjones () |
| Int & | fillFieldId () |
| Int & | fillArrayId () |
| Matrix< Bool > & | fillFlag () |
| Cube< Bool > & | fillFlagCube () |
| Vector< Bool > & | fillFlagRow () |
| Vector< Int > & | fillScan () |
| Vector< Double > & | fillFreq () |
| Vector< Double > & | fillLSRFreq () |
| MDirection & | fillPhaseCenter () |
| Int & | fillPolFrame () |
| Vector< Int > & | fillCorrType () |
| Vector< Float > & | fillSigma () |
| Matrix< Float > & | fillSigmaMat () |
| Int & | fillSpW () |
| Vector< Double > & | fillTime () |
| Vector< Double > & | fillTimeInterval () |
| Vector< RigidVector< Double, 3 > > & | filluvw () |
| Matrix< Double > & | filluvwMat () |
| Matrix< CStokesVector > & | fillVis (VisibilityIterator::DataColumn whichOne) |
| Cube< Complex > & | fillVisCube (VisibilityIterator::DataColumn whichOne) |
| Vector< Float > & | fillWeight () |
| Matrix< Float > & | fillWeightMat () |
| Cube< Float > & | fillWeightSpectrum () |
| Matrix< Float > & | fillImagingWeight () |
| Bool | checkMSId () |
| Vector< Int > | unique (const Vector< Int > &indices) const |
| Filter index arrays for unique elements. | |
| Bool | nonCanonCorr () |
| Are correlations in non-canonical order? | |
Private Attributes | |
| ROVisibilityIterator * | visIter_p |
| Bool | twoWayConnection_p |
| Bool | corrSorted_p |
| Have correlations been sorted by sortCorr? | |
| VisBuffer * | This |
| Bool | nCorrOK_p |
| variables to track validity of cache | |
| Bool | nChannelOK_p |
| Bool | channelOK_p |
| Bool | nRowOK_p |
| Bool | ant1OK_p |
| Bool | ant2OK_p |
| Bool | feed1OK_p |
| Bool | feed2OK_p |
| Bool | cjonesOK_p |
| Bool | fieldIdOK_p |
| Bool | arrayIdOK_p |
| Bool | flagOK_p |
| Bool | flagRowOK_p |
| Bool | scanOK_p |
| Bool | freqOK_p |
| Bool | lsrFreqOK_p |
| Bool | phaseCenterOK_p |
| Bool | polFrameOK_p |
| Bool | sigmaOK_p |
| Bool | sigmaMatOK_p |
| Bool | spwOK_p |
| Bool | timeOK_p |
| Bool | timeIntervalOK_p |
| Bool | uvwOK_p |
| Bool | uvwMatOK_p |
| Bool | visOK_p |
| Bool | weightOK_p |
| Bool | weightMatOK_p |
| Bool | weightSpectrumOK_p |
| Bool | corrTypeOK_p |
| Bool | flagCubeOK_p |
| Bool | visCubeOK_p |
| Bool | imagingWeightOK_p |
| Bool | modelVisOK_p |
| Bool | correctedVisOK_p |
| Bool | modelVisCubeOK_p |
| Bool | correctedVisCubeOK_p |
| Bool | msOK_p |
| Bool | newMS_p |
| Bool | feed1_paOK_p |
| Bool | feed2_paOK_p |
| Bool | direction1OK_p |
| Bool | direction2OK_p |
| Bool | rowIdsOK_p |
| Int | nCorr_p |
| cached variables | |
| Int | nChannel_p |
| Int | nRow_p |
| Vector< Int > | channel_p |
| Vector< Int > | antenna1_p |
| Vector< Int > | antenna2_p |
| Vector< Int > | feed1_p |
| Vector< Int > | feed2_p |
| Vector< Float > | feed1_pa_p |
| Vector< Float > | feed2_pa_p |
| Vector< SquareMatrix< Complex, 2 > > | cjones_p |
| Vector< MDirection > | direction1_p |
| Vector< MDirection > | direction2_p |
| Int | fieldId_p |
| Int | arrayId_p |
| Matrix< Bool > | flag_p |
| Vector< Bool > | flagRow_p |
| Vector< Int > | scan_p |
| Vector< Double > | frequency_p |
| Vector< Double > | lsrFrequency_p |
| MDirection | phaseCenter_p |
| Int | polFrame_p |
| Vector< Int > | corrType_p |
| Vector< Float > | sigma_p |
| Matrix< Float > | sigmaMat_p |
| Int | spectralWindow_p |
| Vector< Double > | time_p |
| Vector< Double > | timeInterval_p |
| Vector< RigidVector< Double, 3 > > | uvw_p |
| Matrix< Double > | uvwMat_p |
| Matrix< CStokesVector > | visibility_p |
| Matrix< CStokesVector > | modelVisibility_p |
| Matrix< CStokesVector > | correctedVisibility_p |
| Vector< Float > | weight_p |
| Matrix< Float > | weightMat_p |
| Cube< Float > | weightSpectrum_p |
| Cube< Bool > | flagCube_p |
| Cube< Complex > | visCube_p |
| Cube< Complex > | modelVisCube_p |
| Cube< Complex > | correctedVisCube_p |
| Vector< uInt > | rowIds_p |
| Matrix< Float > | imagingWeight_p |
| Int | oldMSId_p |
| Cube< Float > | weightCube_p |
| casa::VisBuffer::VisBuffer | ( | ) |
Create empty VisBuffer you can assign to or attach.
| casa::VisBuffer::VisBuffer | ( | ROVisibilityIterator & | iter | ) |
Construct VisBuffer for a particular VisibilityIterator The buffer will remain synchronized with the iterator.
| casa::VisBuffer::VisBuffer | ( | const VisBuffer & | vb | ) |
Copy construct, looses synchronization with iterator: only use buffer for current iteration (or reattach).
| casa::VisBuffer::~VisBuffer | ( | ) |
Destructor (detaches from VisIter).
Assignment, looses synchronization with iterator: only use buffer for current iteration (or reattach).
Reimplemented in casa::CalVisBuffer.
Assignment, optionally without copying the data across; with copy=True this is identical to normal assignment operator.
Reimplemented in casa::CalVisBuffer.
subtraction: return the difference of the visibilities, flags of this and other are or-ed.
An exception is thrown if the number of rows or channels differs, but no further checks are done.
| void casa::VisBuffer::attachToVisIter | ( | ROVisibilityIterator & | iter | ) |
Attach to a VisIter.
Detaches itself first if already attached to a VisIter. Will remain synchronized with iterator.
| void casa::VisBuffer::invalidate | ( | ) |
Invalidate the cache.
| Int& casa::VisBuffer::nCorr | ( | ) | [inline] |
Access functions.
Definition at line 118 of file VisBuffer.h.
References fillnCorr(), nCorr_p, and nCorrOK_p.
Referenced by nCorr().
| Int casa::VisBuffer::nCorr | ( | ) | const [inline] |
| Int& casa::VisBuffer::nChannel | ( | ) | [inline] |
Definition at line 121 of file VisBuffer.h.
References fillnChannel(), nChannel_p, and nChannelOK_p.
Referenced by nChannel().
| Int casa::VisBuffer::nChannel | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::channel | ( | ) | [inline] |
Definition at line 124 of file VisBuffer.h.
References channel_p, channelOK_p, and fillChannel().
Referenced by channel().
| const Vector<Int>& casa::VisBuffer::channel | ( | ) | const [inline] |
| Int& casa::VisBuffer::nRow | ( | ) | [inline] |
Definition at line 127 of file VisBuffer.h.
References fillnRow(), nRow_p, and nRowOK_p.
Referenced by nRow().
| Int casa::VisBuffer::nRow | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::antenna1 | ( | ) | [inline] |
Definition at line 130 of file VisBuffer.h.
References ant1OK_p, antenna1_p, and fillAnt1().
Referenced by antenna1().
| const Vector<Int>& casa::VisBuffer::antenna1 | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::antenna2 | ( | ) | [inline] |
Definition at line 133 of file VisBuffer.h.
References ant2OK_p, antenna2_p, and fillAnt2().
Referenced by antenna2().
| const Vector<Int>& casa::VisBuffer::antenna2 | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::feed1 | ( | ) | [inline] |
Definition at line 136 of file VisBuffer.h.
References feed1_p, feed1OK_p, and fillFeed1().
Referenced by feed1().
| const Vector<Int>& casa::VisBuffer::feed1 | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::feed2 | ( | ) | [inline] |
Definition at line 139 of file VisBuffer.h.
References feed2_p, feed2OK_p, and fillFeed2().
Referenced by feed2().
| const Vector<Int>& casa::VisBuffer::feed2 | ( | ) | const [inline] |
| Vector<Float>& casa::VisBuffer::feed1_pa | ( | ) | [inline] |
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.
Definition at line 147 of file VisBuffer.h.
References feed1_pa_p, feed1_paOK_p, and fillFeed1_pa().
Referenced by feed1_pa().
| const Vector<Float>& casa::VisBuffer::feed1_pa | ( | ) | const [inline] |
| Vector<Float>& casa::VisBuffer::feed2_pa | ( | ) | [inline] |
Definition at line 150 of file VisBuffer.h.
References feed2_pa_p, feed2_paOK_p, and fillFeed2_pa().
Referenced by feed2_pa().
| const Vector<Float>& casa::VisBuffer::feed2_pa | ( | ) | const [inline] |
| Vector<SquareMatrix<Complex,2> >& casa::VisBuffer::CJones | ( | ) | [inline] |
Definition at line 153 of file VisBuffer.h.
References cjones_p, cjonesOK_p, and fillCjones().
Referenced by CJones().
| const Vector<SquareMatrix<Complex,2> >& casa::VisBuffer::CJones | ( | ) | const [inline] |
| const Vector<Float>& casa::VisBuffer::feed_pa | ( | Double | time | ) | const |
Note that feed_pa is a function instead of a cached value.
| Vector<MDirection>& casa::VisBuffer::direction1 | ( | ) | [inline] |
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.
Definition at line 164 of file VisBuffer.h.
References direction1_p, direction1OK_p, and fillDirection1().
Referenced by direction1().
| const Vector<MDirection>& casa::VisBuffer::direction1 | ( | ) | const [inline] |
| Vector<MDirection>& casa::VisBuffer::direction2 | ( | ) | [inline] |
Definition at line 168 of file VisBuffer.h.
References direction2_p, direction2OK_p, and fillDirection2().
Referenced by direction2().
| const Vector<MDirection>& casa::VisBuffer::direction2 | ( | ) | const [inline] |
| const Vector<MDirection>& casa::VisBuffer::azel | ( | Double | time | ) | const |
Note that azel is a function instead of a cached value.
| Matrix<Double>& casa::VisBuffer::azelMat | ( | Double | time, | |
| Matrix< Double > & | azelMat | |||
| ) | const |
| Int casa::VisBuffer::fieldId | ( | ) | const [inline] |
Definition at line 176 of file VisBuffer.h.
References fieldId_p, fieldIdOK_p, fillFieldId(), and This.
| Int casa::VisBuffer::arrayId | ( | ) | const [inline] |
Definition at line 178 of file VisBuffer.h.
References arrayId_p, arrayIdOK_p, fillArrayId(), and This.
| Matrix<Bool>& casa::VisBuffer::flag | ( | ) | [inline] |
Definition at line 180 of file VisBuffer.h.
References fillFlag(), flag_p, and flagOK_p.
Referenced by flag().
| const Matrix<Bool>& casa::VisBuffer::flag | ( | ) | const [inline] |
| Cube<Bool>& casa::VisBuffer::flagCube | ( | ) | [inline] |
Definition at line 183 of file VisBuffer.h.
References fillFlagCube(), flagCube_p, and flagCubeOK_p.
Referenced by flagCube().
| const Cube<Bool>& casa::VisBuffer::flagCube | ( | ) | const [inline] |
| Vector<Bool>& casa::VisBuffer::flagRow | ( | ) | [inline] |
Definition at line 186 of file VisBuffer.h.
References fillFlagRow(), flagRow_p, and flagRowOK_p.
Referenced by flagRow().
| const Vector<Bool>& casa::VisBuffer::flagRow | ( | ) | const [inline] |
| Vector<Int>& casa::VisBuffer::scan | ( | ) | [inline] |
| const Vector<Int>& casa::VisBuffer::scan | ( | ) | const [inline] |
| Int casa::VisBuffer::scan0 | ( | ) | [inline] |
scalar version for convenience, when scan known constant for entire iteration/buffer.
Definition at line 194 of file VisBuffer.h.
References scan().
| Vector<Double>& casa::VisBuffer::frequency | ( | ) | [inline] |
Definition at line 196 of file VisBuffer.h.
References fillFreq(), freqOK_p, and frequency_p.
Referenced by frequency().
| const Vector<Double>& casa::VisBuffer::frequency | ( | ) | const [inline] |
| Vector<Double>& casa::VisBuffer::lsrFrequency | ( | ) | [inline] |
Definition at line 199 of file VisBuffer.h.
References fillLSRFreq(), lsrFreqOK_p, and lsrFrequency_p.
Referenced by lsrFrequency().
| const Vector<Double>& casa::VisBuffer::lsrFrequency | ( | ) | const [inline] |
| void casa::VisBuffer::lsrFrequency | ( | const Int & | spw, | |
| Vector< Double > & | freq, | |||
| Bool | convert = False | |||
| ) | [inline] |
the following method is to convert the observed frequencies This conversion may not be accurate for some frame conversion like topo to lsr except if the spw is in the actual buffer
Definition at line 208 of file VisBuffer.h.
References casa::ROVisibilityIterator::lsrFrequency(), and visIter_p.
| void casa::VisBuffer::lsrFrequency | ( | const Int & | spw, | |
| Vector< Double > & | freq, | |||
| Bool | convert = False | |||
| ) | const [inline] |
Definition at line 211 of file VisBuffer.h.
References casa::ROVisibilityIterator::lsrFrequency(), and visIter_p.
| MDirection& casa::VisBuffer::phaseCenter | ( | ) | [inline] |
Definition at line 214 of file VisBuffer.h.
References fillPhaseCenter(), phaseCenter_p, and phaseCenterOK_p.
Referenced by phaseCenter().
| const MDirection& casa::VisBuffer::phaseCenter | ( | ) | const [inline] |
| Int casa::VisBuffer::polFrame | ( | ) | const [inline] |
Definition at line 218 of file VisBuffer.h.
References fillPolFrame(), polFrame_p, polFrameOK_p, and This.
| Vector<Int>& casa::VisBuffer::corrType | ( | ) | [inline] |
Definition at line 220 of file VisBuffer.h.
References corrType_p, corrTypeOK_p, and fillCorrType().
Referenced by corrType().
| const Vector<Int>& casa::VisBuffer::corrType | ( | ) | const [inline] |
| Vector<Float>& casa::VisBuffer::sigma | ( | ) | [inline] |
Definition at line 223 of file VisBuffer.h.
References fillSigma(), sigma_p, and sigmaOK_p.
Referenced by sigma().
| const Vector<Float>& casa::VisBuffer::sigma | ( | ) | const [inline] |
| Matrix<Float>& casa::VisBuffer::sigmaMat | ( | ) | [inline] |
Definition at line 226 of file VisBuffer.h.
References fillSigmaMat(), sigmaMat_p, and sigmaMatOK_p.
Referenced by sigmaMat().
| const Matrix<Float>& casa::VisBuffer::sigmaMat | ( | ) | const [inline] |
| Int& casa::VisBuffer::spectralWindow | ( | ) | [inline] |
Definition at line 229 of file VisBuffer.h.
References fillSpW(), spectralWindow_p, spwOK_p, and This.
| Int casa::VisBuffer::spectralWindow | ( | ) | const [inline] |
Definition at line 230 of file VisBuffer.h.
References fillSpW(), spectralWindow_p, spwOK_p, and This.
| Int casa::VisBuffer::dataDescriptionId | ( | ) | const [inline] |
Definition at line 231 of file VisBuffer.h.
References casa::ROVisibilityIterator::dataDescriptionId(), and visIter_p.
| Vector<Double>& casa::VisBuffer::time | ( | ) | [inline] |
Definition at line 232 of file VisBuffer.h.
References fillTime(), time_p, and timeOK_p.
Referenced by time().
| const Vector<Double>& casa::VisBuffer::time | ( | ) | const [inline] |
| Vector<Double>& casa::VisBuffer::timeInterval | ( | ) | [inline] |
Definition at line 235 of file VisBuffer.h.
References fillTimeInterval(), timeInterval_p, and timeIntervalOK_p.
Referenced by timeInterval().
| const Vector<Double>& casa::VisBuffer::timeInterval | ( | ) | const [inline] |
| Vector<RigidVector<Double,3> >& casa::VisBuffer::uvw | ( | ) | [inline] |
| const Vector<RigidVector<Double,3> >& casa::VisBuffer::uvw | ( | ) | const [inline] |
| Matrix<Double>& casa::VisBuffer::uvwMat | ( | ) | [inline] |
Definition at line 242 of file VisBuffer.h.
References filluvwMat(), uvwMat_p, and uvwMatOK_p.
Referenced by uvwMat().
| const Matrix<Double>& casa::VisBuffer::uvwMat | ( | ) | const [inline] |
| Matrix<CStokesVector>& casa::VisBuffer::visibility | ( | ) | [inline] |
Definition at line 245 of file VisBuffer.h.
References fillVis(), casa::ROVisibilityIterator::Observed, visibility_p, and visOK_p.
Referenced by visibility().
| const Matrix<CStokesVector>& casa::VisBuffer::visibility | ( | ) | const [inline] |
| Matrix<CStokesVector>& casa::VisBuffer::modelVisibility | ( | ) | [inline] |
Definition at line 249 of file VisBuffer.h.
References fillVis(), casa::ROVisibilityIterator::Model, modelVisibility_p, and modelVisOK_p.
Referenced by modelVisibility().
| const Matrix<CStokesVector>& casa::VisBuffer::modelVisibility | ( | ) | const [inline] |
| Matrix<CStokesVector>& casa::VisBuffer::correctedVisibility | ( | ) | [inline] |
Definition at line 256 of file VisBuffer.h.
References casa::ROVisibilityIterator::Corrected, correctedVisibility_p, correctedVisOK_p, and fillVis().
Referenced by correctedVisibility().
| const Matrix<CStokesVector>& casa::VisBuffer::correctedVisibility | ( | ) | const [inline] |
| Cube<Complex>& casa::VisBuffer::visCube | ( | ) | [inline] |
Definition at line 263 of file VisBuffer.h.
References fillVisCube(), casa::ROVisibilityIterator::Observed, visCube_p, and visCubeOK_p.
Referenced by modelVisCube(), and visCube().
| const Cube<Complex>& casa::VisBuffer::visCube | ( | ) | const [inline] |
| Cube<Complex>& casa::VisBuffer::modelVisCube | ( | ) | [inline] |
Definition at line 267 of file VisBuffer.h.
References fillVisCube(), casa::ROVisibilityIterator::Model, modelVisCube_p, and modelVisCubeOK_p.
Referenced by modelVisCube().
| Cube<Complex>& casa::VisBuffer::modelVisCube | ( | const Bool & | matchVisCubeShape | ) | [inline] |
Definition at line 272 of file VisBuffer.h.
References modelVisCube(), modelVisCube_p, modelVisCubeOK_p, casa::True, and visCube().
| const Cube<Complex>& casa::VisBuffer::modelVisCube | ( | ) | const [inline] |
| Cube<Complex>& casa::VisBuffer::correctedVisCube | ( | ) | [inline] |
Definition at line 286 of file VisBuffer.h.
References casa::ROVisibilityIterator::Corrected, correctedVisCube_p, correctedVisCubeOK_p, and fillVisCube().
Referenced by correctedVisCube().
| const Cube<Complex>& casa::VisBuffer::correctedVisCube | ( | ) | const [inline] |
| Vector<Float>& casa::VisBuffer::weight | ( | ) | [inline] |
Definition at line 294 of file VisBuffer.h.
References fillWeight(), weight_p, and weightOK_p.
Referenced by weight().
| const Vector<Float>& casa::VisBuffer::weight | ( | ) | const [inline] |
| Matrix<Float>& casa::VisBuffer::weightMat | ( | ) | [inline] |
Definition at line 297 of file VisBuffer.h.
References fillWeightMat(), weightMat_p, and weightMatOK_p.
Referenced by weightMat().
| const Matrix<Float>& casa::VisBuffer::weightMat | ( | ) | const [inline] |
| Cube<Float>& casa::VisBuffer::weightSpectrum | ( | ) | [inline] |
Definition at line 300 of file VisBuffer.h.
References fillWeightSpectrum(), weightSpectrum_p, and weightSpectrumOK_p.
Referenced by weightSpectrum().
| const Cube<Float>& casa::VisBuffer::weightSpectrum | ( | ) | const [inline] |
| Matrix<Float>& casa::VisBuffer::imagingWeight | ( | ) | [inline] |
Definition at line 304 of file VisBuffer.h.
References fillImagingWeight(), imagingWeight_p, and imagingWeightOK_p.
Referenced by imagingWeight().
| const Matrix<Float>& casa::VisBuffer::imagingWeight | ( | ) | const [inline] |
| Cube<Float>& casa::VisBuffer::weightCube | ( | ) | [inline] |
| Vector<Int> casa::VisBuffer::vecIntRange | ( | const MSCalEnums::colDef & | calEnum | ) | const |
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.
| Vector<Int> casa::VisBuffer::antIdRange | ( | ) | const |
Antenna id.
range (includes both ANTENNA1 and ANTENNA2 columns)
| Bool casa::VisBuffer::timeRange | ( | MEpoch & | rTime, | |
| MVEpoch & | rTimeEP, | |||
| MVEpoch & | rInterval | |||
| ) | const |
Time range.
| Vector<uInt>& casa::VisBuffer::rowIds | ( | ) |
| const Vector<uInt>& casa::VisBuffer::rowIds | ( | ) | const [inline] |
| void casa::VisBuffer::freqAverage | ( | ) |
Frequency average the buffer (visibility() column only).
| void casa::VisBuffer::freqAveCubes | ( | ) |
Frequency average the buffer (visCube and [if present] modelVisCube).
| void casa::VisBuffer::channelAve | ( | Float | factor | ) |
Average channel axis by factor.
| void casa::VisBuffer::chanAveVisCube | ( | Cube< Complex > & | data, | |
| Int | width, | |||
| Int | nChanOut | |||
| ) |
| void casa::VisBuffer::chanAveFlagCube | ( | Cube< Bool > & | flagcube, | |
| Int | width, | |||
| Int | nChanOut | |||
| ) |
| void casa::VisBuffer::sortCorr | ( | ) |
Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations--use with care!).
| void casa::VisBuffer::unSortCorr | ( | ) |
| void casa::VisBuffer::normalize | ( | const Bool & | phaseOnly = False |
) |
Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp).
| void casa::VisBuffer::resetWeightMat | ( | ) |
Fill weightMat according to sigma column.
| void casa::VisBuffer::updateCoordInfo | ( | ) |
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. Add more as needed.
Reimplemented in casa::CalVisBuffer.
| void casa::VisBuffer::setVisCube | ( | Complex | c | ) |
Set the visibility to a constant, note that this only changes the buffer, no values are written back to tables from here.
| void casa::VisBuffer::setModelVisCube | ( | Complex | c | ) |
| void casa::VisBuffer::setCorrectedVisCube | ( | Complex | c | ) |
| void casa::VisBuffer::setVisCube | ( | const Cube< Complex > & | vis | ) |
Set the visibility, note that this only changes the buffer, no values are written back to tables from here.
| void casa::VisBuffer::setModelVisCube | ( | const Cube< Complex > & | vis | ) |
| void casa::VisBuffer::setCorrectedVisCube | ( | const Cube< Complex > & | vis | ) |
| void casa::VisBuffer::refModelVis | ( | const Matrix< CStokesVector > & | mvis | ) |
Reference external model visibilities.
| void casa::VisBuffer::removeScratchCols | ( | ) |
Remove scratch cols data from vb.
| const ROMSColumns& casa::VisBuffer::msColumns | ( | ) | const [inline] |
Access the current ROMSColumns object via VisIter.
Definition at line 385 of file VisBuffer.h.
References casa::ROVisibilityIterator::msColumns(), and visIter_p.
| void casa::VisBuffer::allSelectedSpectralWindows | ( | Vector< Int > & | spws, | |
| Vector< Int > & | nvischan | |||
| ) | [inline] |
Get all selected spectral windows not just the one in the actual buffer.
Definition at line 389 of file VisBuffer.h.
References casa::ROVisibilityIterator::allSelectedSpectralWindows(), and visIter_p.
Referenced by allSelectedSpectralWindows().
| void casa::VisBuffer::allSelectedSpectralWindows | ( | Vector< Int > & | spws, | |
| Vector< Int > & | nvischan | |||
| ) | const [inline] |
| Int casa::VisBuffer::msId | ( | ) | const [inline] |
Return the actual msid, useful if using multiple ms to monitor which ms in the list is being dealt with.
Definition at line 397 of file VisBuffer.h.
References checkMSId(), oldMSId_p, and This.
| Bool casa::VisBuffer::newMS | ( | ) | const [inline] |
checked if the ms has changed since the last chunk processed
Definition at line 401 of file VisBuffer.h.
References checkMSId(), newMS_p, and This.
| void casa::VisBuffer::validate | ( | ) | [private] |
validate the cache
| Int& casa::VisBuffer::fillnCorr | ( | ) | [private] |
| Int& casa::VisBuffer::fillnChannel | ( | ) | [private] |
Referenced by nChannel().
| Vector<Int>& casa::VisBuffer::fillChannel | ( | ) | [private] |
Referenced by channel().
| Int& casa::VisBuffer::fillnRow | ( | ) | [private] |
Referenced by nRow().
| Vector<Int>& casa::VisBuffer::fillAnt1 | ( | ) | [private] |
Referenced by antenna1().
| Vector<Int>& casa::VisBuffer::fillAnt2 | ( | ) | [private] |
Referenced by antenna2().
| Vector<Int>& casa::VisBuffer::fillFeed1 | ( | ) | [private] |
Referenced by feed1().
| Vector<Int>& casa::VisBuffer::fillFeed2 | ( | ) | [private] |
Referenced by feed2().
| Vector<Float>& casa::VisBuffer::fillFeed1_pa | ( | ) | [private] |
calling fillFeed1_pa or fillFeed2_pa will fill antenna, feed and time caches automatically
Referenced by feed1_pa().
| Vector<Float>& casa::VisBuffer::fillFeed2_pa | ( | ) | [private] |
Referenced by feed2_pa().
| Vector<MDirection>& casa::VisBuffer::fillDirection1 | ( | ) | [private] |
calling direction1 or direction2 will fill antenna,feed, time and pa caches automatically
Referenced by direction1().
| Vector<MDirection>& casa::VisBuffer::fillDirection2 | ( | ) | [private] |
Referenced by direction2().
| Vector<SquareMatrix<Complex,2> >& casa::VisBuffer::fillCjones | ( | ) | [private] |
Referenced by CJones().
| Int& casa::VisBuffer::fillFieldId | ( | ) | [private] |
Referenced by fieldId().
| Int& casa::VisBuffer::fillArrayId | ( | ) | [private] |
Referenced by arrayId().
| Matrix<Bool>& casa::VisBuffer::fillFlag | ( | ) | [private] |
Referenced by flag().
| Cube<Bool>& casa::VisBuffer::fillFlagCube | ( | ) | [private] |
Referenced by flagCube().
| Vector<Bool>& casa::VisBuffer::fillFlagRow | ( | ) | [private] |
Referenced by flagRow().
| Vector<Int>& casa::VisBuffer::fillScan | ( | ) | [private] |
Referenced by scan().
| Vector<Double>& casa::VisBuffer::fillFreq | ( | ) | [private] |
Referenced by frequency().
| Vector<Double>& casa::VisBuffer::fillLSRFreq | ( | ) | [private] |
Referenced by lsrFrequency().
| MDirection& casa::VisBuffer::fillPhaseCenter | ( | ) | [private] |
Referenced by phaseCenter().
| Int& casa::VisBuffer::fillPolFrame | ( | ) | [private] |
Referenced by polFrame().
| Vector<Int>& casa::VisBuffer::fillCorrType | ( | ) | [private] |
Referenced by corrType().
| Vector<Float>& casa::VisBuffer::fillSigma | ( | ) | [private] |
Referenced by sigma().
| Matrix<Float>& casa::VisBuffer::fillSigmaMat | ( | ) | [private] |
Referenced by sigmaMat().
| Int& casa::VisBuffer::fillSpW | ( | ) | [private] |
Referenced by spectralWindow().
| Vector<Double>& casa::VisBuffer::fillTime | ( | ) | [private] |
Referenced by time().
| Vector<Double>& casa::VisBuffer::fillTimeInterval | ( | ) | [private] |
Referenced by timeInterval().
| Vector<RigidVector<Double,3> >& casa::VisBuffer::filluvw | ( | ) | [private] |
Referenced by uvw().
| Matrix<Double>& casa::VisBuffer::filluvwMat | ( | ) | [private] |
Referenced by uvwMat().
| Matrix<CStokesVector>& casa::VisBuffer::fillVis | ( | VisibilityIterator::DataColumn | whichOne | ) | [private] |
Referenced by correctedVisibility(), modelVisibility(), and visibility().
| Cube<Complex>& casa::VisBuffer::fillVisCube | ( | VisibilityIterator::DataColumn | whichOne | ) | [private] |
Referenced by correctedVisCube(), modelVisCube(), and visCube().
| Vector<Float>& casa::VisBuffer::fillWeight | ( | ) | [private] |
Referenced by weight().
| Matrix<Float>& casa::VisBuffer::fillWeightMat | ( | ) | [private] |
Referenced by weightMat().
| Cube<Float>& casa::VisBuffer::fillWeightSpectrum | ( | ) | [private] |
Referenced by weightSpectrum().
| Matrix<Float>& casa::VisBuffer::fillImagingWeight | ( | ) | [private] |
Referenced by imagingWeight().
| Vector<Int> casa::VisBuffer::unique | ( | const Vector< Int > & | indices | ) | const [private] |
Filter index arrays for unique elements.
| Bool casa::VisBuffer::nonCanonCorr | ( | ) | [private] |
Are correlations in non-canonical order?
ROVisibilityIterator* casa::VisBuffer::visIter_p [private] |
Definition at line 460 of file VisBuffer.h.
Referenced by allSelectedSpectralWindows(), dataDescriptionId(), lsrFrequency(), and msColumns().
Bool casa::VisBuffer::twoWayConnection_p [private] |
Definition at line 461 of file VisBuffer.h.
Bool casa::VisBuffer::corrSorted_p [private] |
VisBuffer* casa::VisBuffer::This [private] |
Definition at line 469 of file VisBuffer.h.
Referenced by allSelectedSpectralWindows(), antenna1(), antenna2(), arrayId(), channel(), CJones(), correctedVisCube(), correctedVisibility(), corrType(), direction1(), direction2(), feed1(), feed1_pa(), feed2(), feed2_pa(), fieldId(), flag(), flagCube(), flagRow(), frequency(), imagingWeight(), lsrFrequency(), modelVisCube(), modelVisibility(), msId(), nChannel(), nCorr(), newMS(), nRow(), phaseCenter(), polFrame(), rowIds(), scan(), sigma(), sigmaMat(), spectralWindow(), time(), timeInterval(), uvw(), uvwMat(), visCube(), visibility(), weight(), weightMat(), and weightSpectrum().
Bool casa::VisBuffer::nCorrOK_p [private] |
variables to track validity of cache
Definition at line 471 of file VisBuffer.h.
Referenced by nCorr().
Bool casa::VisBuffer::nChannelOK_p [private] |
Bool casa::VisBuffer::channelOK_p [private] |
Bool casa::VisBuffer::nRowOK_p [private] |
Bool casa::VisBuffer::ant1OK_p [private] |
Bool casa::VisBuffer::ant2OK_p [private] |
Bool casa::VisBuffer::feed1OK_p [private] |
Bool casa::VisBuffer::feed2OK_p [private] |
Bool casa::VisBuffer::cjonesOK_p [private] |
Bool casa::VisBuffer::fieldIdOK_p [private] |
Bool casa::VisBuffer::arrayIdOK_p [private] |
Bool casa::VisBuffer::flagOK_p [private] |
Bool casa::VisBuffer::flagRowOK_p [private] |
Bool casa::VisBuffer::scanOK_p [private] |
Bool casa::VisBuffer::freqOK_p [private] |
Bool casa::VisBuffer::lsrFreqOK_p [private] |
Bool casa::VisBuffer::phaseCenterOK_p [private] |
Bool casa::VisBuffer::polFrameOK_p [private] |
Bool casa::VisBuffer::sigmaOK_p [private] |
Bool casa::VisBuffer::sigmaMatOK_p [private] |
Bool casa::VisBuffer::spwOK_p [private] |
Bool casa::VisBuffer::timeOK_p [private] |
Bool casa::VisBuffer::timeIntervalOK_p [private] |
Bool casa::VisBuffer::uvwOK_p [private] |
Bool casa::VisBuffer::uvwMatOK_p [private] |
Bool casa::VisBuffer::visOK_p [private] |
Bool casa::VisBuffer::weightOK_p [private] |
Bool casa::VisBuffer::weightMatOK_p [private] |
Bool casa::VisBuffer::weightSpectrumOK_p [private] |
Bool casa::VisBuffer::corrTypeOK_p [private] |
Bool casa::VisBuffer::flagCubeOK_p [private] |
Bool casa::VisBuffer::visCubeOK_p [private] |
Bool casa::VisBuffer::imagingWeightOK_p [private] |
Bool casa::VisBuffer::modelVisOK_p [private] |
Bool casa::VisBuffer::correctedVisOK_p [private] |
Bool casa::VisBuffer::modelVisCubeOK_p [private] |
Bool casa::VisBuffer::correctedVisCubeOK_p [private] |
Bool casa::VisBuffer::msOK_p [private] |
Definition at line 479 of file VisBuffer.h.
Bool casa::VisBuffer::newMS_p [private] |
Bool casa::VisBuffer::feed1_paOK_p [private] |
Bool casa::VisBuffer::feed2_paOK_p [private] |
Bool casa::VisBuffer::direction1OK_p [private] |
Bool casa::VisBuffer::direction2OK_p [private] |
Bool casa::VisBuffer::rowIdsOK_p [private] |
Definition at line 481 of file VisBuffer.h.
Int casa::VisBuffer::nCorr_p [private] |
Int casa::VisBuffer::nChannel_p [private] |
Int casa::VisBuffer::nRow_p [private] |
Vector<Int> casa::VisBuffer::channel_p [private] |
Vector<Int> casa::VisBuffer::antenna1_p [private] |
Vector<Int> casa::VisBuffer::antenna2_p [private] |
Vector<Int> casa::VisBuffer::feed1_p [private] |
Vector<Int> casa::VisBuffer::feed2_p [private] |
Vector<Float> casa::VisBuffer::feed1_pa_p [private] |
Vector<Float> casa::VisBuffer::feed2_pa_p [private] |
Vector<SquareMatrix<Complex,2> > casa::VisBuffer::cjones_p [private] |
Vector<MDirection> casa::VisBuffer::direction1_p [private] |
Vector<MDirection> casa::VisBuffer::direction2_p [private] |
Int casa::VisBuffer::fieldId_p [private] |
Int casa::VisBuffer::arrayId_p [private] |
Matrix<Bool> casa::VisBuffer::flag_p [private] |
Vector<Bool> casa::VisBuffer::flagRow_p [private] |
Vector<Int> casa::VisBuffer::scan_p [private] |
Vector<Double> casa::VisBuffer::frequency_p [private] |
Vector<Double> casa::VisBuffer::lsrFrequency_p [private] |
MDirection casa::VisBuffer::phaseCenter_p [private] |
Int casa::VisBuffer::polFrame_p [private] |
Vector<Int> casa::VisBuffer::corrType_p [private] |
Vector<Float> casa::VisBuffer::sigma_p [private] |
Matrix<Float> casa::VisBuffer::sigmaMat_p [private] |
Int casa::VisBuffer::spectralWindow_p [private] |
Vector<Double> casa::VisBuffer::time_p [private] |
Vector<Double> casa::VisBuffer::timeInterval_p [private] |
Vector<RigidVector<Double,3> > casa::VisBuffer::uvw_p [private] |
Matrix<Double> casa::VisBuffer::uvwMat_p [private] |
Matrix<CStokesVector> casa::VisBuffer::visibility_p [private] |
Matrix<CStokesVector> casa::VisBuffer::modelVisibility_p [private] |
Matrix<CStokesVector> casa::VisBuffer::correctedVisibility_p [private] |
Vector<Float> casa::VisBuffer::weight_p [private] |
Matrix<Float> casa::VisBuffer::weightMat_p [private] |
Cube<Float> casa::VisBuffer::weightSpectrum_p [private] |
Cube<Bool> casa::VisBuffer::flagCube_p [private] |
Cube<Complex> casa::VisBuffer::visCube_p [private] |
Cube<Complex> casa::VisBuffer::modelVisCube_p [private] |
Cube<Complex> casa::VisBuffer::correctedVisCube_p [private] |
Vector<uInt> casa::VisBuffer::rowIds_p [private] |
Definition at line 512 of file VisBuffer.h.
Matrix<Float> casa::VisBuffer::imagingWeight_p [private] |
Int casa::VisBuffer::oldMSId_p [private] |
Cube<Float> casa::VisBuffer::weightCube_p [private] |
1.5.1