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

#include <VisibilityIteratorImpl2.h>

Inheritance diagram for casa::vi::VisibilityIteratorImpl2:
casa::vi::ViImplementation2 casa::vi::VisibilityIteratorImplAsync2

Classes

class  BackWriter
 +========================| | | | Output Related Methods | | | +========================| More...
 
class  BackWriterImpl
 A simple BackWriterImpl2 uses a nullary accessor on a VisBuffer. More...
 
class  BackWriterImpl2
 BackWriterImpl2 is slightly more complicated in that it uses a unary accessor. More...
 
class  Cache
 void convertVisFromStokes(const casacore::Matrix<CStokesVector> & visibilityStokes, casacore::Cube<casacore::Complex> & visCube); More...
 
class  PendingChanges
 
class  RowBounds
 

Public Types

typedef
VisibilityIterator2::DataColumn 
DataColumn
 VLAT should not access private parts, especially variables. More...
 
typedef std::tuple
< casacore::Vector
< casacore::Int >
, casacore::Vector
< casacore::Int >
, casacore::Vector
< casacore::Int >
, casacore::Vector
< casacore::Int > > 
ChannelInfo
 

Public Member Functions

 VisibilityIteratorImpl2 (const casacore::Block< const casacore::MeasurementSet * > &mss, const SortColumns &sortColumns, casacore::Double timeInterval, casacore::Bool isWritable, casacore::Bool useMSIter2=false)
 
Default constructor - useful only to assign another iterator later

VisibilityIteratorImpl2 (); More...

 
 VisibilityIteratorImpl2 (const VisibilityIteratorImpl2 &vii)
 
VisibilityIteratorImpl2operator= (const VisibilityIteratorImpl2 &vii)
 
 VisibilityIteratorImpl2 (VisibilityIteratorImpl2 &&vii)
 
VisibilityIteratorImpl2operator= (VisibilityIteratorImpl2 &&vii)
 
virtual ~VisibilityIteratorImpl2 ()
 Destructor. More...
 
std::unique_ptr
< VisibilityIteratorImpl2
clone () const
 Members. More...
 
virtual casacore::String ViiType () const override
 Report the the ViImplementation type TBD: indicate writable? More...
 
virtual casacore::Bool isWritable () const override
 
virtual void origin () override
 Reset iterator to origin/start of data (of current chunk) More...
 
virtual void originChunks ()
 Reset iterator to true start of data (first chunk) More...
 
virtual casacore::Double getInterval () const override
 Return the time interval (in seconds) used for iteration. More...
 
virtual void setInterval (casacore::Double timeInterval) override
 Set or reset the time interval (in seconds) to use for iteration. More...
 
virtual void setRowBlocking (casacore::Int nRows=0) override
 Set the 'blocking' size for returning data. More...
 
virtual casacore::Bool existsColumn (VisBufferComponent2 id) const override
 
virtual casacore::Bool more () const override
 Return false if no more data (in current chunk) More...
 
virtual Subchunk getSubchunkId () const override
 
virtual const SortColumnsgetSortColumns () const override
 
virtual void setFrequencySelections (const FrequencySelections &selection) override
 Select the channels to be returned. More...
 
virtual casacore::Bool moreChunks () const override
 Return false if no more 'Chunks' of data left. More...
 
virtual casacore::Bool isNewArrayId () const override
 Check if ms has change since last iteration. More...
 
virtual casacore::Bool isNewFieldId () const override
 
virtual casacore::Bool isNewMs () const override
 
virtual casacore::Bool isNewSpectralWindow () const override
 
virtual casacore::Int msId () const override
 reference to actual ms in interator More...
 
virtual casacore::Int getNMs () const override
 
virtual VisBuffer2getVisBuffer () const override
 
virtual const
casacore::MeasurementSet
ms () const override
 reference to actual ms in interator More...
 
virtual casacore::String msName () const override
 Name of the MS in the interator. More...
 
virtual void next () override
 advance the iteration More...
 
virtual void nextChunk () override
 Advance to the next Chunk of data. More...
 
virtual casacore::String keyChange () const override
 Report Name of slowest column that changes at end of current iteration. More...
 
virtual void antenna1 (casacore::Vector< casacore::Int > &ant1) const override
 Return antenna1. More...
 
virtual void antenna2 (casacore::Vector< casacore::Int > &ant2) const override
 Return antenna2. More...
 
virtual void feed1 (casacore::Vector< casacore::Int > &fd1) const override
 Return feed1. More...
 
virtual void feed2 (casacore::Vector< casacore::Int > &fd2) const override
 Return feed2. More...
 
void jonesC (casacore::Vector< casacore::SquareMatrix< casacore::Complex, 2 > > &cjones) const override
 Return feed configuration matrix for specified antenna. More...
 
virtual const casacore::Cube
< casacore::Double > & 
receptorAngles () const override
 Return receptor angles for all antennae and feeds First axis of the cube is a receptor number, 2nd is antennaId, 3rd is feedId Note: the method is intended to provide an access to MSIter::receptorAngles for VisBuffer in the multi-feed case. More...
 
virtual const casacore::Vector
< casacore::String > & 
antennaMounts () const override
 return a string mount identifier for each antenna More...
 
virtual const casacore::Cube
< casacore::RigidVector
< casacore::Double, 2 > > & 
getBeamOffsets () const override
 Return a cube containing pairs of coordinate offsets for each receptor of each feed (values are in radians, coordinate system is fixed with antenna and is the same one as used to define the BEAM_OFFSET parameter in the feed table). More...
 
virtual std::pair< bool,
casacore::MDirection
getPointingAngle (int antenna, double time) const override
 
virtual casacore::Bool allBeamOffsetsZero () const override
 true if all elements of the cube returned by getBeamOffsets are zero More...
 
virtual const casacore::Vector
< casacore::Float > & 
feed_pa (casacore::Double time) const override
 Return feed parallactic angles casacore::Vector (nant) (1 feed/ant) More...
 
virtual const casacore::Floatparang0 (casacore::Double time) const override
 Return nominal parallactic angle at specified time (does not include feed position angle offset–see feed_pa) A global value for all antennas (e.g., small array) More...
 
virtual const casacore::Vector
< casacore::Float > & 
parang (casacore::Double time) const override
 Per antenna: More...
 
virtual casacore::MDirection azel0 (casacore::Double time) const override
 Return the antenna AZ/EL casacore::Vector(nant) More...
 
virtual const casacore::Vector
< casacore::MDirection > & 
azel (casacore::Double time) const override
 
virtual casacore::Double hourang (casacore::Double time) const override
 Return the hour angle for the specified time. More...
 
virtual void fieldIds (casacore::Vector< casacore::Int > &) const override
 Return the current FieldId. More...
 
virtual void arrayIds (casacore::Vector< casacore::Int > &) const override
 Return the current ArrayId. More...
 
virtual casacore::String fieldName () const override
 Return the current Field Name. More...
 
virtual casacore::String sourceName () const override
 Return the current Source Name. More...
 
virtual void flag (casacore::Cube< casacore::Bool > &flags) const override
 Return flag for each polarization, channel and row. More...
 
virtual void flag (casacore::Matrix< casacore::Bool > &flags) const override
 Return flag for each channel & row. More...
 
casacore::Bool flagCategoryExists () const override
 Determine whether FLAG_CATEGORY is valid. More...
 
virtual void flagCategory (casacore::Array< casacore::Bool > &flagCategories) const override
 Return flags for each polarization, channel, category, and row. More...
 
virtual void flagRow (casacore::Vector< casacore::Bool > &rowflags) const override
 Return row flag. More...
 
virtual void scan (casacore::Vector< casacore::Int > &scans) const override
 Return scan number. More...
 
virtual void observationId (casacore::Vector< casacore::Int > &obsids) const override
 Return the OBSERVATION_IDs. More...
 
virtual void processorId (casacore::Vector< casacore::Int > &procids) const override
 Return the PROCESSOR_IDs. More...
 
virtual void stateId (casacore::Vector< casacore::Int > &stateids) const override
 Return the STATE_IDs. More...
 
virtual const
casacore::MDirection
phaseCenter () const override
 Return the current phase center as an MDirection. More...
 
virtual casacore::Int polFrame () const override
 Return frame for polarization(returns PolFrame enum) More...
 
virtual void corrType (casacore::Vector< casacore::Int > &corrTypes) const override
 Return the correlation type (returns casacore::Stokes enums) More...
 
virtual void sigma (casacore::Matrix< casacore::Float > &sig) const override
 Return sigma. More...
 
virtual casacore::Int spectralWindow () const override
 Return current SpectralWindow. More...
 
virtual void spectralWindows (casacore::Vector< casacore::Int > &spws) const override
 
virtual casacore::Int polarizationId () const override
 Return current Polarization Id. More...
 
virtual casacore::Int dataDescriptionId () const override
 Return current DataDescription Id. More...
 
virtual void dataDescriptionIds (casacore::Vector< casacore::Int > &ddis) const override
 
virtual void time (casacore::Vector< casacore::Double > &t) const override
 Return MJD midpoint of interval. More...
 
virtual void timeCentroid (casacore::Vector< casacore::Double > &t) const override
 Return MJD centroid of interval. More...
 
virtual void timeInterval (casacore::Vector< casacore::Double > &ti) const override
 Return nominal time interval. More...
 
virtual void exposure (casacore::Vector< casacore::Double > &expo) const override
 Return actual time interval. More...
 
virtual void visibilityCorrected (casacore::Cube< casacore::Complex > &vis) const override
 Return the visibilities as found in the casacore::MS, casacore::Cube(npol,nchan,nrow). More...
 
virtual void visibilityModel (casacore::Cube< casacore::Complex > &vis) const override
 
virtual void visibilityObserved (casacore::Cube< casacore::Complex > &vis) const override
 
virtual casacore::Vector
< casacore::Vector
< casacore::Int > > 
getAllSelectedSpws () const
 This will return all selected spwids for each ms attached with this iterator. More...
 
virtual void floatData (casacore::Cube< casacore::Float > &fcube) const override
 Return FLOAT_DATA as a casacore::Cube(npol, nchan, nrow) if found in the MS. More...
 
virtual casacore::IPosition visibilityShape () const override
 Return the visibility 4-vector of polarizations for each channel. More...
 
virtual void uvw (casacore::Matrix< casacore::Double > &uvwmat) const override
 Return u,v and w (in meters) More...
 
virtual void weight (casacore::Matrix< casacore::Float > &wt) const override
 Return weight. More...
 
casacore::Bool weightSpectrumExists () const override
 Determine whether WEIGHT_SPECTRUM exists. More...
 
casacore::Bool sigmaSpectrumExists () const override
 Determine whether SIGMA_SPECTRUM exists. More...
 
virtual void weightSpectrum (casacore::Cube< casacore::Float > &wtsp) const override
 Return weightspectrum(a weight for each channel) More...
 
virtual void sigmaSpectrum (casacore::Cube< casacore::Float > &sigsp) const override
 Return sigmaspectrum(a sigma for each channel) More...
 
virtual void setWeightScaling (casacore::CountedPtr< WeightScaling > weightscaling) override
 
virtual casacore::CountedPtr
< WeightScaling
getWeightScaling () const override
 
virtual casacore::Bool hasWeightScaling () const override
 
const VisImagingWeightgetImagingWeightGenerator () const override
 
Return imaging weight (a weight for each channel)

virtual casacore::Matrix<casacore::Float> & imagingWeight(casacore::Matrix<casacore::Float> & wt) const; More...

 
virtual casacore::Bool newFieldId () const
 Return true if FieldId/Source has changed since last iteration. More...
 
virtual casacore::Bool newArrayId () const
 Return true if arrayID has changed since last iteration. More...
 
virtual casacore::Bool newSpectralWindow () const
 Return true if SpectralWindow has changed since last iteration. More...
 
virtual casacore::Int nRows () const override
 Return the number of rows in the current iteration. More...
 
virtual void getRowIds (casacore::Vector< casacore::uInt > &rowids) const override
 Return the row ids as from the original root table. More...
 
virtual casacore::Int nRowsInChunk () const override
 Return the numbers of rows in the current chunk. More...
 
virtual void slurp () const override
 Return the number of sub-intervals in the current chunk. More...
 
virtual const vi::SubtableColumnssubtableColumns () const override
 Get the spw, start and nchan for all the ms's is this Visiter that match the frequecy "freqstart-freqStep" and "freqEnd+freqStep" range Can help in doing channel selection above. More...
 
virtual const
SpectralWindowChannels & 
getSpectralWindowChannels (casacore::Int msId, casacore::Int spectralWindowId) const override
 get back the selected spectral windows and spectral channels for current ms More...
 
virtual void useImagingWeight (const VisImagingWeight &imWgt) override
 assign a VisImagingWeight object to this iterator More...
 
virtual casacore::Int nAntennas () const override
 return number of Ant More...
 
virtual casacore::Int nRowsViWillSweep () const override
 Return number of rows in all selected ms's. More...
 
virtual casacore::Int nSpectralWindows () const override
 Return number of spws, polids, ddids. More...
 
virtual casacore::Int nPolarizationIds () const override
 
virtual casacore::Int nDataDescriptionIds () const override
 
virtual casacore::MEpoch getEpoch () const override
 
virtual casacore::Vector<casacore::MPosition> antennaPositions () const;

casacore::MSDerivedValues makeMsd (); More...

 
casacore::MFrequency::Types getObservatoryFrequencyType () const override
 
casacore::MPosition getObservatoryPosition () const override
 
casacore::Vector< casacore::FloatgetReceptor0Angle () override
 
virtual void writeFlag (const casacore::Cube< casacore::Bool > &flag) override
 Write/modify the flags in the data. More...
 
virtual void writeFlagRow (const casacore::Vector< casacore::Bool > &rowflags) override
 Write/modify the flag row column; dimension casacore::Vector(nrow) More...
 
void writeFlagCategory (const casacore::Array< casacore::Bool > &fc) override
 
virtual void writeVisCorrected (const casacore::Cube< casacore::Complex > &vis) override
 Write/modify the visibilities. More...
 
virtual void writeVisModel (const casacore::Cube< casacore::Complex > &vis) override
 
virtual void writeVisObserved (const casacore::Cube< casacore::Complex > &vis) override
 
virtual void writeWeight (const casacore::Matrix< casacore::Float > &wt) override
 Write/modify the weights. More...
 
virtual void writeWeightSpectrum (const casacore::Cube< casacore::Float > &wtsp) override
 
Write/modify the weightMat

virtual void writeWeightMat(const casacore::Matrix<casacore::Float> & wtmat); More...

 
virtual void initWeightSpectrum (const casacore::Cube< casacore::Float > &weightSpectrum) override
 Initialize the weightSpectrum column. More...
 
virtual void writeSigmaSpectrum (const casacore::Cube< casacore::Float > &sigsp) override
 Write/modify the sigmaSpectrum. More...
 
virtual void initSigmaSpectrum (const casacore::Cube< casacore::Float > &sigmaSpectrum) override
 Initialize the sigmaSpectrum column. More...
 
virtual void writeSigma (const casacore::Matrix< casacore::Float > &sig) override
 Write/modify the Sigma. More...
 
virtual void writeModel (const casacore::RecordInterface &rec, casacore::Bool iscomponentlist=true, casacore::Bool incremental=false) override
 Write/modify the ncorr x nrow SigmaMat. More...
 
virtual void writeBackChanges (VisBuffer2 *) override
 +----------------—+ | | | Writeback Methods | | | +----------------—+ More...
 
const
casacore::ROMSAntennaColumns
antennaSubtablecols () const override
 
const
casacore::ROMSDataDescColumns
dataDescriptionSubtablecols () const override
 Access to dataDescription subtable. More...
 
const casacore::ROMSFeedColumnsfeedSubtablecols () const override
 Access to feed subtable. More...
 
const casacore::ROMSFieldColumnsfieldSubtablecols () const override
 Access to field subtable. More...
 
const
casacore::ROMSFlagCmdColumns
flagCmdSubtablecols () const override
 Access to flagCmd subtable. More...
 
const
casacore::ROMSHistoryColumns
historySubtablecols () const override
 Access to history subtable. More...
 
const
casacore::ROMSObservationColumns
observationSubtablecols () const override
 Access to observation subtable. More...
 
const
casacore::ROMSPointingColumns
pointingSubtablecols () const override
 Access to pointing subtable. More...
 
const
casacore::ROMSPolarizationColumns
polarizationSubtablecols () const override
 Access to polarization subtable. More...
 
const
casacore::ROMSProcessorColumns
processorSubtablecols () const override
 Access to processor subtable. More...
 
const
casacore::ROMSSpWindowColumns
spectralWindowSubtablecols () const override
 Access to spectralWindow subtable. More...
 
const casacore::ROMSStateColumnsstateSubtablecols () const override
 Access to state subtable. More...
 
const
casacore::ROMSDopplerColumns
dopplerSubtablecols () const override
 Access to doppler subtable. More...
 
const
casacore::ROMSFreqOffsetColumns
freqOffsetSubtablecols () const override
 Access to freqOffset subtable. More...
 
const casacore::ROMSSourceColumnssourceSubtablecols () const override
 Access to source subtable. More...
 
const casacore::ROMSSysCalColumnssysCalSubtablecols () const override
 Access to sysCal subtable. More...
 
const
casacore::ROMSWeatherColumns
weatherSubtablecols () const override
 Access to weather subtable. More...
 
- Public Member Functions inherited from casa::vi::ViImplementation2
 ViImplementation2 (const ViImplementation2 &)=delete
 make noncopyable... More...
 
ViImplementation2operator= (const ViImplementation2 &)=delete
 
 ViImplementation2 ()
 
virtual ~ViImplementation2 ()
 Destructor. More...
 

Protected Types

typedef casacore::Block
< casacore::MeasurementSet
MeasurementSets
 

Protected Member Functions

virtual void attachColumns (const casacore::Table &t)
 
virtual const casacore::Table attachTable () const
 returns the table, to which columns are attached, can be overridden in derived classes More...
 
virtual void applyPendingChanges ()
 
virtual void allSpectralWindowsSelected (casacore::Vector< casacore::Int > &selectedWindows, casacore::Vector< casacore::Int > &nChannels) const
 
virtual void configureNewChunk ()
 set the iteration state More...
 
virtual void configureNewSubchunk ()
 set the currently selected table More...
 
const ChannelSelector * createDefaultChannelSelector (casacore::Double time, casacore::Int msId, casacore::Int spectralWindowId)
 
virtual const vi::ChannelSelector * determineChannelSelection (casacore::Double time, casacore::Int spectralWindowId=-1, casacore::Int polarizationId=-1, casacore::Int msId=-1) const
 
bool fillFromVirtualModel (casacore::Cube< casacore::Complex > &value) const
 
casacore::Slice findChannelsInRange (casacore::Double lowerFrequency, casacore::Double upperFrequency, const vi::SpectralWindowChannels &spectralWindowChannels) const
 
ChannelInfo getChannelInformation (casacore::Bool now) const
 
ChannelInfo getChannelInformationUsingFrequency (casacore::Bool now) const
 
template<typename T >
void getColumnRows (const casacore::ScalarColumn< T > &column, casacore::Vector< T > &array) const
 Methods to get the data out of a table column according to whatever selection criteria (e.g., slicing) is in effect. More...
 
template<typename T >
void getColumnRowsMatrix (const casacore::ArrayColumn< T > &column, casacore::Matrix< T > &array, casacore::Bool correlationSlicing) const
 
template<typename T >
void getColumnRows (const casacore::ArrayColumn< T > &column, casacore::Array< T > &array) const
 
casacore::Vector
< casacore::Double
getFrequencies (casacore::Double time, casacore::Int frameOfReference, casacore::Int spectralWindowId, casacore::Int msId) const override
 
casacore::Vector< casacore::IntgetChannels (casacore::Double time, casacore::Int frameOfReference, casacore::Int spectralWindowId, casacore::Int msId) const override
 
casacore::Vector< casacore::IntgetCorrelations () const override
 
casacore::Vector
< casacore::Stokes::StokesTypes
getCorrelationTypesDefined () const override
 
casacore::Vector
< casacore::Stokes::StokesTypes
getCorrelationTypesSelected () const override
 
int getMeasurementFrame (int spectralWindowId) const
 
casacore::Int getPolarizationId (casacore::Int spectralWindowId, casacore::Int msId) const
 
casacore::Int getReportingFrameOfReference () const override
 
casacore::Block
< casacore::MeasurementSet
getMeasurementSets () const
 Returns the casacore::MS objects that this VI is iterating over. More...
 
const casacore::MSDerivedValuesgetMsd () const
 Provides access to the casacore::MS-derived values object. More...
 
VisibilityIterator2getViP () const
 Get privileged (non-const) access to the containing ROVI. More...
 
VisBuffer2getVisBuffer (const VisibilityIterator2 *) const
 void getVisibilityAsStokes(casacore::Matrix<CStokesVector> & visibilityStokes, const casacore::ArrayColumn<casacore::Complex> & column) const; More...
 
virtual void addDataSelection (const casacore::MeasurementSet &ms)
 Ctor auxiliary method. More...
 
virtual void initialize (const casacore::Block< const casacore::MeasurementSet * > &mss, casacore::Bool useMSIter2=false)
 
casacore::Bool isInASelectedSpectralWindow () const
 Returns true if casacore::MS Iterator is currently pointing to a selected spectral window. More...
 
vi::ChannelSelector * makeChannelSelectorC (const FrequencySelection &selection, casacore::Double time, casacore::Int msId, casacore::Int spectralWindowId, casacore::Int polarizationId) const
 Creates a channel selection for the current subchunk based on the channel or frequency selection made by the user. More...
 
vi::ChannelSelector * makeChannelSelectorF (const FrequencySelection &selection, casacore::Double time, casacore::Int msId, casacore::Int spectralWindowId, casacore::Int polarizationId) const
 
casacore::MFrequency::Convert makeFrequencyConverter (casacore::Double time, int spectralWindowId, casacore::Int otherFrameOfReference, casacore::Bool toObservedFrame, casacore::Unit) const
 
const casacore::ROMSColumnsmsColumnsKluge () const
 Allow access to the casacore::MSColumns object; for use by VisBuffer2Adapter KLUGE More...
 
virtual void originChunks (casacore::Bool forceRewind) override
 Method to reset the VI back to the start. More...
 
void positionMsIterToASelectedSpectralWindow ()
 Advances the casacore::MS Iterator until it points at a spectral window that is part of the frequency selection. More...
 
void setReportingFrameOfReference (casacore::Int) override
 Sets the default frequency reporting frame of reference. More...
 
virtual void setTileCache ()
 Adjusts the tile cache for some columns so that the cache size is optimized for the current input state (e.g., a new data description). More...
 
void setMsCacheSizes (const casacore::MeasurementSet &ms, std::vector< casacore::MSMainEnums::PredefinedColumns > columnIds)
 
void setMsColumnCacheSizes (const casacore::MeasurementSet &, const string &)
 
virtual void throwIfPendingChanges ()
 Throws exception if there is a pending (i.e., unapplied) change to the VI's properties. More...
 
casacore::Bool usesTiledDataManager (const casacore::String &columnName, const casacore::MeasurementSet &ms) const
 Returns true if the named column uses a tiled data manager in the specified MS. More...
 
void initializeBackWriters ()
 
template<typename T >
void putColumnRows (casacore::ArrayColumn< T > &column, const casacore::Array< T > &array)
 
template<typename T >
void putColumnRows (casacore::ArrayColumn< T > &column, const casacore::Matrix< T > &array)
 
template<typename T >
void putColumnRows (casacore::ScalarColumn< T > &column, const casacore::Vector< T > &array)
 
- Protected Member Functions inherited from casa::vi::ViImplementation2
virtual VisBuffer2createAttachedVisBuffer (VisBufferOptions options)
 
VisBuffer2getVisBuffer (const VisibilityIterator2 *) const
 

Static Protected Member Functions

template<typename Ret >
static BackWritermakeBackWriter (void(VisibilityIteratorImpl2::*setter)(Ret), Ret(VisBuffer2::*getter)() const)
 Backwriter(2) creation methods. More...
 
template<typename Ret >
static BackWritermakeBackWriter2 (void(VisibilityIteratorImpl2::*setter)(Ret, VisibilityIteratorImpl2::DataColumn), Ret(VisBuffer2::*getter)() const, VisibilityIterator2::DataColumn dc)
 
- Static Protected Member Functions inherited from casa::vi::ViImplementation2
static void doWeightScaling (casacore::Bool hasWeightScaling, WeightScaling *scaling, const casacore::Array< casacore::Float > &unscaled, casacore::Array< casacore::Float > &scaled)
 

Protected Attributes

casacore::Bool autoTileCacheSizing_p
 
std::map< VisBufferComponent2,
BackWriter * > 
backWriters_p
 
Cache cache_p
 general collection of cached values More...
 
const ChannelSelector * channelSelector_p
 [use] current channel selector for this casacore::MS & Spw More...
 
ChannelSelectorCache * channelSelectorCache_p
 [own] cache of recently used channel selectors More...
 
ViColumns2 columns_p
 The main columns for the current MS. More...
 
casacore::Bool floatDataFound_p
 true if a float data column was found More...
 
FrequencySelectionsfrequencySelections_p
 [own] Current frequency selection More...
 
VisImagingWeight imwgt_p
 object to calculate imaging weight More...
 
casacore::Int measurementFrame_p
 cached value of observatory type More...
 
MeasurementSets measurementSets_p
 
VisModelDataImodelDataGenerator_p
 
casacore::Bool more_p
 true if more data in this chunk More...
 
casacore::Int msIndex_p
 array index of current MS More...
 
casacore::Bool msIterAtOrigin_p
 true if casacore::MS Iter is a start of first MS More...
 
casacore::CountedPtr
< casacore::MSIter
msIter_p
 casacore::MS Iter that underlies the VI (sweeps in chunks) More...
 
casacore::MSDerivedValues msd_p
 Helper class holding casacore::MS derived values. More...
 
casacore::Int nCorrelations_p
 
casacore::Int nRowBlocking_p
 suggested # of rows in a subchunk More...
 
std::unique_ptr< PendingChangespendingChanges_p
 holds pending changes to VI properties More...
 
std::unique_ptr
< PointingDirectionCache
pointingDirectionCache_p
 
std::unique_ptr< PointingSourcepointingSource_p
 
casacore::Int reportingFrame_p
 default frequency reporting (not selecting) frame of reference More...
 
RowBounds rowBounds_p
 Subchunk row management object (see above) More...
 
SortColumns sortColumns_p
 sort columns specified when creating VI More...
 
SpectralWindowChannelsCache * spectralWindowChannelsCache_p
 [own] Info about spectral windows More...
 
Subchunk subchunk_p
 (chunkN #, subchunk #) pair More...
 
SubtableColumnssubtableColumns_p
 [own] Allows const access to casacore::MS's subtable columns More...
 
casacore::MeasRef
< casacore::MEpoch
timeFrameOfReference_p
 
std::shared_ptr< std::mutex > tileCacheModMtx_p
 
std::shared_ptr< std::vector
< bool > > 
tileCacheIsSet_p
 
casacore::Double timeInterval_p
 
VisBufferType vbType
 
VisBuffer2vb_p
 [own] VisBuffer attached to this VI More...
 
casacore::CountedPtr
< WeightScaling
weightScaling_p
 
casacore::Bool writable_p
 

Friends

class AsyncEnabler
 
class ViImplAsync2
 
class VisibilityIterator2
 
class VLAT
 
class VisBuffer2Adapter
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::vi::ViImplementation2
static void azel0Calculate (casacore::Double time, casacore::MSDerivedValues &msd, casacore::MDirection &azel0, const casacore::MEpoch &mEpoch0)
 
static void azelCalculate (casacore::Double time, casacore::MSDerivedValues &msd, casacore::Vector< casacore::MDirection > &azel, casacore::Int nAnt, const casacore::MEpoch &mEpoch0)
 
static casacore::Vector
< casacore::Float
feed_paCalculate (casacore::Double time, casacore::MSDerivedValues &msd, casacore::Int nAntennas, const casacore::MEpoch &mEpoch0, const casacore::Vector< casacore::Float > &receptor0Angle)
 
static casacore::Double hourangCalculate (casacore::Double time, casacore::MSDerivedValues &msd, const casacore::MEpoch &mEpoch0)
 
static casacore::Float parang0Calculate (casacore::Double time, casacore::MSDerivedValues &msd, const casacore::MEpoch &epoch0)
 
static casacore::Vector
< casacore::Float
parangCalculate (casacore::Double time, casacore::MSDerivedValues &msd, int nAntennas, const casacore::MEpoch mEpoch0)
 

Detailed Description

Definition at line 76 of file VisibilityIteratorImpl2.h.

Member Typedef Documentation

Definition at line 88 of file VisibilityIteratorImpl2.h.

VLAT should not access private parts, especially variables.

Definition at line 87 of file VisibilityIteratorImpl2.h.

Definition at line 1159 of file VisibilityIteratorImpl2.h.

Constructor & Destructor Documentation

casa::vi::VisibilityIteratorImpl2::VisibilityIteratorImpl2 ( const casacore::Block< const casacore::MeasurementSet * > &  mss,
const SortColumns sortColumns,
casacore::Double  timeInterval,
casacore::Bool  isWritable,
casacore::Bool  useMSIter2 = false 
)

Default constructor - useful only to assign another iterator later

VisibilityIteratorImpl2 ();

Construct from an casacore::MS and a casacore::Block of casacore::MS column enums specifying the iteration order. If no order is specified, it uses the default sort order of MSIter, which is not necessarily the raw order of ms! The default ordering is ARRAY_ID, FIELD_ID, DATA_DESC_ID, and TIME, but check MSIter.h to be sure. These columns will be added first if they are not specified.

An optional timeInterval (in seconds) can be given to iterate through chunks of time. The default interval of 0 groups all times together. Every 'chunk' of data contains all data within a certain time interval and with identical values of the other iteration columns (e.g. DATA_DESC_ID and FIELD_ID). Using selectChannel (), a number of groups of channels can be requested. At present the channel group iteration will always occur before the interval iteration. VisibilityIteratorImpl (const casacore::MeasurementSet & ms, const casacore::Block<casacore::Int> & sortColumns, casacore::Double timeInterval = 0);

Same as above, but with the option of using the raw order of ms (addDefaultSortCols=false). VisibilityIteratorImpl (const casacore::MeasurementSet & ms, const casacore::Block<casacore::Int> & sortColumns, const casacore::Bool addDefaultSortCols, casacore::Double timeInterval = 0);

Same as previous constructors, but with multiple MSs to iterate over. VisibilityIteratorImpl (const casacore::Block<casacore::MeasurementSet> & mss, const casacore::Block<casacore::Int> & sortColumns, casacore::Double timeInterval = 0);

casa::vi::VisibilityIteratorImpl2::VisibilityIteratorImpl2 ( const VisibilityIteratorImpl2 vii)
casa::vi::VisibilityIteratorImpl2::VisibilityIteratorImpl2 ( VisibilityIteratorImpl2 &&  vii)
virtual casa::vi::VisibilityIteratorImpl2::~VisibilityIteratorImpl2 ( )
virtual

Destructor.

Member Function Documentation

virtual void casa::vi::VisibilityIteratorImpl2::addDataSelection ( const casacore::MeasurementSet ms)
protectedvirtual

Ctor auxiliary method.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::allBeamOffsetsZero ( ) const
overridevirtual

true if all elements of the cube returned by getBeamOffsets are zero

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::allSpectralWindowsSelected ( casacore::Vector< casacore::Int > &  selectedWindows,
casacore::Vector< casacore::Int > &  nChannels 
) const
protectedvirtual
virtual void casa::vi::VisibilityIteratorImpl2::antenna1 ( casacore::Vector< casacore::Int > &  ant1) const
overridevirtual

Return antenna1.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::antenna2 ( casacore::Vector< casacore::Int > &  ant2) const
overridevirtual

Return antenna2.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const casacore::Vector<casacore::String>& casa::vi::VisibilityIteratorImpl2::antennaMounts ( ) const
overridevirtual

return a string mount identifier for each antenna

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSAntennaColumns& casa::vi::VisibilityIteratorImpl2::antennaSubtablecols ( ) const
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::applyPendingChanges ( )
protectedvirtual
virtual void casa::vi::VisibilityIteratorImpl2::arrayIds ( casacore::Vector< casacore::Int > &  ) const
overridevirtual

Return the current ArrayId.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::attachColumns ( const casacore::Table t)
protectedvirtual
virtual const casacore::Table casa::vi::VisibilityIteratorImpl2::attachTable ( ) const
protectedvirtual

returns the table, to which columns are attached, can be overridden in derived classes

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisibilityIteratorImpl2::azel ( casacore::Double  time) const
overridevirtual
virtual casacore::MDirection casa::vi::VisibilityIteratorImpl2::azel0 ( casacore::Double  time) const
overridevirtual

Return the antenna AZ/EL casacore::Vector(nant)

Implements casa::vi::ViImplementation2.

std::unique_ptr<VisibilityIteratorImpl2> casa::vi::VisibilityIteratorImpl2::clone ( ) const

Members.

virtual void casa::vi::VisibilityIteratorImpl2::configureNewChunk ( )
protectedvirtual

set the iteration state

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::configureNewSubchunk ( )
protectedvirtual

set the currently selected table

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::corrType ( casacore::Vector< casacore::Int > &  corrTypes) const
overridevirtual

Return the correlation type (returns casacore::Stokes enums)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const ChannelSelector* casa::vi::VisibilityIteratorImpl2::createDefaultChannelSelector ( casacore::Double  time,
casacore::Int  msId,
casacore::Int  spectralWindowId 
)
protected
virtual casacore::Int casa::vi::VisibilityIteratorImpl2::dataDescriptionId ( ) const
overridevirtual

Return current DataDescription Id.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::dataDescriptionIds ( casacore::Vector< casacore::Int > &  ddis) const
overridevirtual
const casacore::ROMSDataDescColumns& casa::vi::VisibilityIteratorImpl2::dataDescriptionSubtablecols ( ) const
overridevirtual

Access to dataDescription subtable.

Implements casa::vi::ViImplementation2.

virtual const vi::ChannelSelector* casa::vi::VisibilityIteratorImpl2::determineChannelSelection ( casacore::Double  time,
casacore::Int  spectralWindowId = -1,
casacore::Int  polarizationId = -1,
casacore::Int  msId = -1 
) const
protectedvirtual
const casacore::ROMSDopplerColumns& casa::vi::VisibilityIteratorImpl2::dopplerSubtablecols ( ) const
overridevirtual

Access to doppler subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::existsColumn ( VisBufferComponent2  id) const
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::exposure ( casacore::Vector< casacore::Double > &  expo) const
overridevirtual

Return actual time interval.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::feed1 ( casacore::Vector< casacore::Int > &  fd1) const
overridevirtual

Return feed1.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::feed2 ( casacore::Vector< casacore::Int > &  fd2) const
overridevirtual

Return feed2.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisibilityIteratorImpl2::feed_pa ( casacore::Double  time) const
overridevirtual

Return feed parallactic angles casacore::Vector (nant) (1 feed/ant)

Implements casa::vi::ViImplementation2.

const casacore::ROMSFeedColumns& casa::vi::VisibilityIteratorImpl2::feedSubtablecols ( ) const
overridevirtual

Access to feed subtable.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::fieldIds ( casacore::Vector< casacore::Int > &  ) const
overridevirtual

Return the current FieldId.

Implements casa::vi::ViImplementation2.

virtual casacore::String casa::vi::VisibilityIteratorImpl2::fieldName ( ) const
overridevirtual

Return the current Field Name.

Implements casa::vi::ViImplementation2.

const casacore::ROMSFieldColumns& casa::vi::VisibilityIteratorImpl2::fieldSubtablecols ( ) const
overridevirtual

Access to field subtable.

Implements casa::vi::ViImplementation2.

bool casa::vi::VisibilityIteratorImpl2::fillFromVirtualModel ( casacore::Cube< casacore::Complex > &  value) const
protected
casacore::Slice casa::vi::VisibilityIteratorImpl2::findChannelsInRange ( casacore::Double  lowerFrequency,
casacore::Double  upperFrequency,
const vi::SpectralWindowChannels &  spectralWindowChannels 
) const
protected
virtual void casa::vi::VisibilityIteratorImpl2::flag ( casacore::Cube< casacore::Bool > &  flags) const
overridevirtual

Return flag for each polarization, channel and row.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::flag ( casacore::Matrix< casacore::Bool > &  flags) const
overridevirtual

Return flag for each channel & row.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::flagCategory ( casacore::Array< casacore::Bool > &  flagCategories) const
overridevirtual

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

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

casacore::Bool casa::vi::VisibilityIteratorImpl2::flagCategoryExists ( ) const
overridevirtual

Determine whether FLAG_CATEGORY is valid.

Implements casa::vi::ViImplementation2.

const casacore::ROMSFlagCmdColumns& casa::vi::VisibilityIteratorImpl2::flagCmdSubtablecols ( ) const
overridevirtual

Access to flagCmd subtable.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::flagRow ( casacore::Vector< casacore::Bool > &  rowflags) const
overridevirtual

Return row flag.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::floatData ( casacore::Cube< casacore::Float > &  fcube) const
overridevirtual

Return FLOAT_DATA as a casacore::Cube(npol, nchan, nrow) if found in the MS.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSFreqOffsetColumns& casa::vi::VisibilityIteratorImpl2::freqOffsetSubtablecols ( ) const
overridevirtual

Access to freqOffset subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Vector<casacore::Vector<casacore::Int> > casa::vi::VisibilityIteratorImpl2::getAllSelectedSpws ( ) const
virtual

This will return all selected spwids for each ms attached with this iterator.

virtual const casacore::Cube<casacore::RigidVector<casacore::Double, 2> >& casa::vi::VisibilityIteratorImpl2::getBeamOffsets ( ) const
overridevirtual

Return a cube containing pairs of coordinate offsets for each receptor of each feed (values are in radians, coordinate system is fixed with antenna and is the same one as used to define the BEAM_OFFSET parameter in the feed table).

The cube axes are receptor, antenna, feed.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

ChannelInfo casa::vi::VisibilityIteratorImpl2::getChannelInformation ( casacore::Bool  now) const
protected
ChannelInfo casa::vi::VisibilityIteratorImpl2::getChannelInformationUsingFrequency ( casacore::Bool  now) const
protected
casacore::Vector<casacore::Int> casa::vi::VisibilityIteratorImpl2::getChannels ( casacore::Double  time,
casacore::Int  frameOfReference,
casacore::Int  spectralWindowId,
casacore::Int  msId 
) const
overrideprotectedvirtual
template<typename T >
void casa::vi::VisibilityIteratorImpl2::getColumnRows ( const casacore::ScalarColumn< T > &  column,
casacore::Vector< T > &  array 
) const
protected

Methods to get the data out of a table column according to whatever selection criteria (e.g., slicing) is in effect.

template<typename T >
void casa::vi::VisibilityIteratorImpl2::getColumnRows ( const casacore::ArrayColumn< T > &  column,
casacore::Array< T > &  array 
) const
protected
template<typename T >
void casa::vi::VisibilityIteratorImpl2::getColumnRowsMatrix ( const casacore::ArrayColumn< T > &  column,
casacore::Matrix< T > &  array,
casacore::Bool  correlationSlicing 
) const
protected
casacore::Vector<casacore::Int> casa::vi::VisibilityIteratorImpl2::getCorrelations ( ) const
overrideprotectedvirtual
casacore::Vector<casacore::Stokes::StokesTypes> casa::vi::VisibilityIteratorImpl2::getCorrelationTypesDefined ( ) const
overrideprotectedvirtual
casacore::Vector<casacore::Stokes::StokesTypes> casa::vi::VisibilityIteratorImpl2::getCorrelationTypesSelected ( ) const
overrideprotectedvirtual
virtual casacore::MEpoch casa::vi::VisibilityIteratorImpl2::getEpoch ( ) const
overridevirtual

virtual casacore::Vector<casacore::MPosition> antennaPositions () const;

casacore::MSDerivedValues makeMsd ();

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

casacore::Vector<casacore::Double> casa::vi::VisibilityIteratorImpl2::getFrequencies ( casacore::Double  time,
casacore::Int  frameOfReference,
casacore::Int  spectralWindowId,
casacore::Int  msId 
) const
overrideprotectedvirtual
const VisImagingWeight& casa::vi::VisibilityIteratorImpl2::getImagingWeightGenerator ( ) const
overridevirtual

Return imaging weight (a weight for each channel)

virtual casacore::Matrix<casacore::Float> & imagingWeight(casacore::Matrix<casacore::Float> & wt) const;

Implements casa::vi::ViImplementation2.

virtual casacore::Double casa::vi::VisibilityIteratorImpl2::getInterval ( ) const
overridevirtual

Return the time interval (in seconds) used for iteration.

This is not the same as the INTERVAL column.

Implements casa::vi::ViImplementation2.

int casa::vi::VisibilityIteratorImpl2::getMeasurementFrame ( int  spectralWindowId) const
protected
casacore::Block<casacore::MeasurementSet> casa::vi::VisibilityIteratorImpl2::getMeasurementSets ( ) const
protected

Returns the casacore::MS objects that this VI is iterating over.

const casacore::MSDerivedValues& casa::vi::VisibilityIteratorImpl2::getMsd ( ) const
protected

Provides access to the casacore::MS-derived values object.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::getNMs ( ) const
overridevirtual
casacore::MFrequency::Types casa::vi::VisibilityIteratorImpl2::getObservatoryFrequencyType ( ) const
overridevirtual
casacore::MPosition casa::vi::VisibilityIteratorImpl2::getObservatoryPosition ( ) const
overridevirtual
virtual std::pair<bool, casacore::MDirection> casa::vi::VisibilityIteratorImpl2::getPointingAngle ( int  antenna,
double  time 
) const
overridevirtual
casacore::Int casa::vi::VisibilityIteratorImpl2::getPolarizationId ( casacore::Int  spectralWindowId,
casacore::Int  msId 
) const
protected
casacore::Vector<casacore::Float> casa::vi::VisibilityIteratorImpl2::getReceptor0Angle ( )
overridevirtual
casacore::Int casa::vi::VisibilityIteratorImpl2::getReportingFrameOfReference ( ) const
overrideprotectedvirtual
virtual void casa::vi::VisibilityIteratorImpl2::getRowIds ( casacore::Vector< casacore::uInt > &  rowids) const
overridevirtual

Return the row ids as from the original root table.

This is useful to find correspondance between a given row in this iteration to the original ms row

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const SortColumns& casa::vi::VisibilityIteratorImpl2::getSortColumns ( ) const
overridevirtual
virtual const SpectralWindowChannels& casa::vi::VisibilityIteratorImpl2::getSpectralWindowChannels ( casacore::Int  msId,
casacore::Int  spectralWindowId 
) const
overridevirtual

get back the selected spectral windows and spectral channels for current ms

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual Subchunk casa::vi::VisibilityIteratorImpl2::getSubchunkId ( ) const
overridevirtual
VisibilityIterator2* casa::vi::VisibilityIteratorImpl2::getViP ( ) const
protected

Get privileged (non-const) access to the containing ROVI.

virtual VisBuffer2* casa::vi::VisibilityIteratorImpl2::getVisBuffer ( ) const
overridevirtual
VisBuffer2* casa::vi::VisibilityIteratorImpl2::getVisBuffer ( const VisibilityIterator2 ) const
protected

void getVisibilityAsStokes(casacore::Matrix<CStokesVector> & visibilityStokes, const casacore::ArrayColumn<casacore::Complex> & column) const;

virtual casacore::CountedPtr<WeightScaling> casa::vi::VisibilityIteratorImpl2::getWeightScaling ( ) const
overridevirtual
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::hasWeightScaling ( ) const
overridevirtual
const casacore::ROMSHistoryColumns& casa::vi::VisibilityIteratorImpl2::historySubtablecols ( ) const
overridevirtual

Access to history subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Double casa::vi::VisibilityIteratorImpl2::hourang ( casacore::Double  time) const
overridevirtual

Return the hour angle for the specified time.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::initialize ( const casacore::Block< const casacore::MeasurementSet * > &  mss,
casacore::Bool  useMSIter2 = false 
)
protectedvirtual
void casa::vi::VisibilityIteratorImpl2::initializeBackWriters ( )
protected
virtual void casa::vi::VisibilityIteratorImpl2::initSigmaSpectrum ( const casacore::Cube< casacore::Float > &  sigmaSpectrum)
overridevirtual

Initialize the sigmaSpectrum column.

Reimplemented from casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::initWeightSpectrum ( const casacore::Cube< casacore::Float > &  weightSpectrum)
overridevirtual

Initialize the weightSpectrum column.

Reimplemented from casa::vi::ViImplementation2.

casacore::Bool casa::vi::VisibilityIteratorImpl2::isInASelectedSpectralWindow ( ) const
protected

Returns true if casacore::MS Iterator is currently pointing to a selected spectral window.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::isNewArrayId ( ) const
overridevirtual

Check if ms has change since last iteration.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::isNewFieldId ( ) const
overridevirtual
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::isNewMs ( ) const
overridevirtual
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::isNewSpectralWindow ( ) const
overridevirtual
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::isWritable ( ) const
overridevirtual
void casa::vi::VisibilityIteratorImpl2::jonesC ( casacore::Vector< casacore::SquareMatrix< casacore::Complex, 2 > > &  cjones) const
overridevirtual

Return feed configuration matrix for specified antenna.

Implements casa::vi::ViImplementation2.

virtual casacore::String casa::vi::VisibilityIteratorImpl2::keyChange ( ) const
inlineoverridevirtual

Report Name of slowest column that changes at end of current iteration.

Implements casa::vi::ViImplementation2.

Definition at line 242 of file VisibilityIteratorImpl2.h.

References msIter_p.

template<typename Ret >
static BackWriter* casa::vi::VisibilityIteratorImpl2::makeBackWriter ( void(VisibilityIteratorImpl2::*)(Ret)  setter,
Ret(VisBuffer2::*)() const  getter 
)
inlinestaticprotected

Backwriter(2) creation methods.

These methods make it fairly straightforward to create a BackWriter object.

Definition at line 1036 of file VisibilityIteratorImpl2.h.

template<typename Ret >
static BackWriter* casa::vi::VisibilityIteratorImpl2::makeBackWriter2 ( void(VisibilityIteratorImpl2::*)(Ret, VisibilityIteratorImpl2::DataColumn setter,
Ret(VisBuffer2::*)() const  getter,
VisibilityIterator2::DataColumn  dc 
)
inlinestaticprotected

Define the Getter and Setter types

Definition at line 1047 of file VisibilityIteratorImpl2.h.

vi::ChannelSelector* casa::vi::VisibilityIteratorImpl2::makeChannelSelectorC ( const FrequencySelection selection,
casacore::Double  time,
casacore::Int  msId,
casacore::Int  spectralWindowId,
casacore::Int  polarizationId 
) const
protected

Creates a channel selection for the current subchunk based on the channel or frequency selection made by the user.

vi::ChannelSelector* casa::vi::VisibilityIteratorImpl2::makeChannelSelectorF ( const FrequencySelection selection,
casacore::Double  time,
casacore::Int  msId,
casacore::Int  spectralWindowId,
casacore::Int  polarizationId 
) const
protected
casacore::MFrequency::Convert casa::vi::VisibilityIteratorImpl2::makeFrequencyConverter ( casacore::Double  time,
int  spectralWindowId,
casacore::Int  otherFrameOfReference,
casacore::Bool  toObservedFrame,
casacore::Unit   
) const
protected
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::more ( ) const
overridevirtual

Return false if no more data (in current chunk)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::moreChunks ( ) const
overridevirtual

Return false if no more 'Chunks' of data left.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const casacore::MeasurementSet& casa::vi::VisibilityIteratorImpl2::ms ( ) const
overridevirtual

reference to actual ms in interator

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSColumns* casa::vi::VisibilityIteratorImpl2::msColumnsKluge ( ) const
protected

Allow access to the casacore::MSColumns object; for use by VisBuffer2Adapter KLUGE

Referenced by casa::vi::VisBuffer2Adapter::construct().

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::msId ( ) const
overridevirtual

reference to actual ms in interator

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

Referenced by casa::vi::VisBuffer2Adapter::lsrFrequency().

virtual casacore::String casa::vi::VisibilityIteratorImpl2::msName ( ) const
overridevirtual

Name of the MS in the interator.

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nAntennas ( ) const
overridevirtual

return number of Ant

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nDataDescriptionIds ( ) const
overridevirtual
virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::newArrayId ( ) const
virtual

Return true if arrayID has changed since last iteration.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::newFieldId ( ) const
virtual

Return true if FieldId/Source has changed since last iteration.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Bool casa::vi::VisibilityIteratorImpl2::newSpectralWindow ( ) const
virtual

Return true if SpectralWindow has changed since last iteration.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::next ( )
overridevirtual

advance the iteration

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::nextChunk ( )
overridevirtual

Advance to the next Chunk of data.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nPolarizationIds ( ) const
overridevirtual
virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nRows ( ) const
overridevirtual

Return the number of rows in the current iteration.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nRowsInChunk ( ) const
overridevirtual

Return the numbers of rows in the current chunk.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nRowsViWillSweep ( ) const
overridevirtual

Return number of rows in all selected ms's.

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::nSpectralWindows ( ) const
overridevirtual

Return number of spws, polids, ddids.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::observationId ( casacore::Vector< casacore::Int > &  obsids) const
overridevirtual

Return the OBSERVATION_IDs.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSObservationColumns& casa::vi::VisibilityIteratorImpl2::observationSubtablecols ( ) const
overridevirtual

Access to observation subtable.

Implements casa::vi::ViImplementation2.

VisibilityIteratorImpl2& casa::vi::VisibilityIteratorImpl2::operator= ( const VisibilityIteratorImpl2 vii)
VisibilityIteratorImpl2& casa::vi::VisibilityIteratorImpl2::operator= ( VisibilityIteratorImpl2 &&  vii)
virtual void casa::vi::VisibilityIteratorImpl2::origin ( )
overridevirtual

Reset iterator to origin/start of data (of current chunk)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::originChunks ( )
virtual

Reset iterator to true start of data (first chunk)

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::originChunks ( casacore::Bool  forceRewind)
overrideprotectedvirtual

Method to reset the VI back to the start.

Unlike the public version there is a parameter to allow forcing the rewind even if the casacore::MS Iter is already at the origin.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisibilityIteratorImpl2::parang ( casacore::Double  time) const
overridevirtual

Per antenna:

Implements casa::vi::ViImplementation2.

virtual const casacore::Float& casa::vi::VisibilityIteratorImpl2::parang0 ( casacore::Double  time) const
overridevirtual

Return nominal parallactic angle at specified time (does not include feed position angle offset–see feed_pa) A global value for all antennas (e.g., small array)

Implements casa::vi::ViImplementation2.

virtual const casacore::MDirection& casa::vi::VisibilityIteratorImpl2::phaseCenter ( ) const
overridevirtual

Return the current phase center as an MDirection.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSPointingColumns& casa::vi::VisibilityIteratorImpl2::pointingSubtablecols ( ) const
overridevirtual

Access to pointing subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::polarizationId ( ) const
overridevirtual

Return current Polarization Id.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSPolarizationColumns& casa::vi::VisibilityIteratorImpl2::polarizationSubtablecols ( ) const
overridevirtual

Access to polarization subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::polFrame ( ) const
overridevirtual

Return frame for polarization(returns PolFrame enum)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

void casa::vi::VisibilityIteratorImpl2::positionMsIterToASelectedSpectralWindow ( )
protected

Advances the casacore::MS Iterator until it points at a spectral window that is part of the frequency selection.

virtual void casa::vi::VisibilityIteratorImpl2::processorId ( casacore::Vector< casacore::Int > &  procids) const
overridevirtual

Return the PROCESSOR_IDs.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSProcessorColumns& casa::vi::VisibilityIteratorImpl2::processorSubtablecols ( ) const
overridevirtual

Access to processor subtable.

Implements casa::vi::ViImplementation2.

template<typename T >
void casa::vi::VisibilityIteratorImpl2::putColumnRows ( casacore::ArrayColumn< T > &  column,
const casacore::Array< T > &  array 
)
protected
template<typename T >
void casa::vi::VisibilityIteratorImpl2::putColumnRows ( casacore::ArrayColumn< T > &  column,
const casacore::Matrix< T > &  array 
)
protected
template<typename T >
void casa::vi::VisibilityIteratorImpl2::putColumnRows ( casacore::ScalarColumn< T > &  column,
const casacore::Vector< T > &  array 
)
protected
virtual const casacore::Cube<casacore::Double>& casa::vi::VisibilityIteratorImpl2::receptorAngles ( ) const
overridevirtual

Return receptor angles for all antennae and feeds First axis of the cube is a receptor number, 2nd is antennaId, 3rd is feedId Note: the method is intended to provide an access to MSIter::receptorAngles for VisBuffer in the multi-feed case.

It may be worth to change the interface of feed_pa to return the information for all feeds.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::scan ( casacore::Vector< casacore::Int > &  scans) const
overridevirtual

Return scan number.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::setFrequencySelections ( const FrequencySelections selection)
overridevirtual

Select the channels to be returned.

Requires calling originChunks before performing additional iteration.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::setInterval ( casacore::Double  timeInterval)
overridevirtual

Set or reset the time interval (in seconds) to use for iteration.

You should call originChunks() to reset the iteration after calling this.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

void casa::vi::VisibilityIteratorImpl2::setMsCacheSizes ( const casacore::MeasurementSet ms,
std::vector< casacore::MSMainEnums::PredefinedColumns columnIds 
)
protected
void casa::vi::VisibilityIteratorImpl2::setMsColumnCacheSizes ( const casacore::MeasurementSet ,
const string &   
)
protected
void casa::vi::VisibilityIteratorImpl2::setReportingFrameOfReference ( casacore::Int  )
overrideprotectedvirtual

Sets the default frequency reporting frame of reference.

This affects the default frame for obtaining the frequencies in a VisBuffer.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::setRowBlocking ( casacore::Int  nRows = 0)
overridevirtual

Set the 'blocking' size for returning data.

With the default (0) only a single integration is returned at a time, this is what is currently required for the calibration software. With blocking set, up to nRows can be returned in one go. The chunk size determines the actual maximum.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::setTileCache ( )
protectedvirtual

Adjusts the tile cache for some columns so that the cache size is optimized for the current input state (e.g., a new data description).

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::setWeightScaling ( casacore::CountedPtr< WeightScaling weightscaling)
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::sigma ( casacore::Matrix< casacore::Float > &  sig) const
overridevirtual

Return sigma.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::sigmaSpectrum ( casacore::Cube< casacore::Float > &  sigsp) const
overridevirtual

Return sigmaspectrum(a sigma for each channel)

Implements casa::vi::ViImplementation2.

casacore::Bool casa::vi::VisibilityIteratorImpl2::sigmaSpectrumExists ( ) const
overridevirtual

Determine whether SIGMA_SPECTRUM exists.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::slurp ( ) const
overridevirtual

Return the number of sub-intervals in the current chunk.

virtual casacore::Int nSubInterval() const;

Call to use the slurp i/o method for all scalar columns. This will set the casacore::BucketCache cache size to the full column length and cause the full column to be cached in memory, if any value of the column is used. In case of out-of-memory, it will automatically fall-back on the smaller cache size. Slurping the column is to be considered as a work-around for the casacore::Table i/o code, which uses casacore::BucketCache and performs extremely bad for random access. Slurping is useful when iterating non-sequentially an casacore::MS or parts of an casacore::MS, it is not tested with multiple MSs.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::String casa::vi::VisibilityIteratorImpl2::sourceName ( ) const
overridevirtual

Return the current Source Name.

Implements casa::vi::ViImplementation2.

const casacore::ROMSSourceColumns& casa::vi::VisibilityIteratorImpl2::sourceSubtablecols ( ) const
overridevirtual

Access to source subtable.

Implements casa::vi::ViImplementation2.

virtual casacore::Int casa::vi::VisibilityIteratorImpl2::spectralWindow ( ) const
overridevirtual

Return current SpectralWindow.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::spectralWindows ( casacore::Vector< casacore::Int > &  spws) const
overridevirtual
const casacore::ROMSSpWindowColumns& casa::vi::VisibilityIteratorImpl2::spectralWindowSubtablecols ( ) const
overridevirtual

Access to spectralWindow subtable.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::stateId ( casacore::Vector< casacore::Int > &  stateids) const
overridevirtual

Return the STATE_IDs.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSStateColumns& casa::vi::VisibilityIteratorImpl2::stateSubtablecols ( ) const
overridevirtual

Access to state subtable.

Implements casa::vi::ViImplementation2.

virtual const vi::SubtableColumns& casa::vi::VisibilityIteratorImpl2::subtableColumns ( ) const
overridevirtual

Get the spw, start and nchan for all the ms's is this Visiter that match the frequecy "freqstart-freqStep" and "freqEnd+freqStep" range Can help in doing channel selection above.

. freqFrame is the frame the caller frequency values are in(freqStart and freqEnd) These will be converted to the frame of the selected spw to match

virtual void getSpwInFreqRange(casacore::Block<casacore::Vector<casacore::Int> > & spw, casacore::Block<casacore::Vector<casacore::Int> > & start, casacore::Block<casacore::Vector<casacore::Int> > & nchan, casacore::Double freqStart, casacore::Double freqEnd, casacore::Double freqStep, casacore::MFrequency::Types freqFrame = casacore::MFrequency::LSRK) const;

Get the range of frequency convered by the selected data in the frame requested

virtual void getFreqInSpwRange(casacore::Double& freqStart, casacore::Double& freqEnd, casacore::MFrequency::Types freqframe = casacore::MFrequency::LSRK) const;

Access the current casacore::ROMSColumns object in MSIter

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSSysCalColumns& casa::vi::VisibilityIteratorImpl2::sysCalSubtablecols ( ) const
overridevirtual

Access to sysCal subtable.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::throwIfPendingChanges ( )
protectedvirtual

Throws exception if there is a pending (i.e., unapplied) change to the VI's properties.

Called when the VI is advanced since the user probably forgot to apply the changes.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::time ( casacore::Vector< casacore::Double > &  t) const
overridevirtual

Return MJD midpoint of interval.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::timeCentroid ( casacore::Vector< casacore::Double > &  t) const
overridevirtual

Return MJD centroid of interval.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::timeInterval ( casacore::Vector< casacore::Double > &  ti) const
overridevirtual

Return nominal time interval.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::useImagingWeight ( const VisImagingWeight imWgt)
overridevirtual

assign a VisImagingWeight object to this iterator

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

casacore::Bool casa::vi::VisibilityIteratorImpl2::usesTiledDataManager ( const casacore::String columnName,
const casacore::MeasurementSet ms 
) const
protected

Returns true if the named column uses a tiled data manager in the specified MS.

virtual void casa::vi::VisibilityIteratorImpl2::uvw ( casacore::Matrix< casacore::Double > &  uvwmat) const
overridevirtual

Return u,v and w (in meters)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual casacore::String casa::vi::VisibilityIteratorImpl2::ViiType ( ) const
inlineoverridevirtual

Report the the ViImplementation type TBD: indicate writable?

Implements casa::vi::ViImplementation2.

Definition at line 148 of file VisibilityIteratorImpl2.h.

virtual void casa::vi::VisibilityIteratorImpl2::visibilityCorrected ( casacore::Cube< casacore::Complex > &  vis) const
overridevirtual

Return the visibilities as found in the casacore::MS, casacore::Cube(npol,nchan,nrow).

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::visibilityModel ( casacore::Cube< casacore::Complex > &  vis) const
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::visibilityObserved ( casacore::Cube< casacore::Complex > &  vis) const
overridevirtual
virtual casacore::IPosition casa::vi::VisibilityIteratorImpl2::visibilityShape ( ) const
overridevirtual

Return the visibility 4-vector of polarizations for each channel.

If the casacore::MS doesn't contain all polarizations, it is assumed it contains one or two parallel hand polarizations.

virtual void visibilityCorrected(casacore::Matrix<CStokesVector> & vis) const; virtual void visibilityModel(casacore::Matrix<CStokesVector> & vis) const; virtual void visibilityObserved(casacore::Matrix<CStokesVector> & vis) const;

Return the shape of the visibility Cube

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

const casacore::ROMSWeatherColumns& casa::vi::VisibilityIteratorImpl2::weatherSubtablecols ( ) const
overridevirtual

Access to weather subtable.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::weight ( casacore::Matrix< casacore::Float > &  wt) const
overridevirtual

Return weight.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::weightSpectrum ( casacore::Cube< casacore::Float > &  wtsp) const
overridevirtual

Return weightspectrum(a weight for each channel)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

casacore::Bool casa::vi::VisibilityIteratorImpl2::weightSpectrumExists ( ) const
overridevirtual

Determine whether WEIGHT_SPECTRUM exists.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::writeBackChanges ( VisBuffer2 vb)
overridevirtual

+----------------—+ | | | Writeback Methods | | | +----------------—+

This method writes back any changed (dirty) components of the provided VisBuffer and is the preferred method for writing data out.

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::writeFlag ( const casacore::Cube< casacore::Bool > &  flag)
overridevirtual

Write/modify the flags in the data.

This will flag all channels in the original data that contributed to the output channel in the case of channel averaging. All polarizations have the same flag value.

virtual void writeFlag(const casacore::Matrix<casacore::Bool> & flag);

Write/modify the flags in the data.

This writes the flags as found in the casacore::MS, casacore::Cube(npol,nchan,nrow), where nrow is the number of rows in the current iteration(given by nRow()).

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

void casa::vi::VisibilityIteratorImpl2::writeFlagCategory ( const casacore::Array< casacore::Bool > &  fc)
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::writeFlagRow ( const casacore::Vector< casacore::Bool > &  rowflags)
overridevirtual

Write/modify the flag row column; dimension casacore::Vector(nrow)

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::writeModel ( const casacore::RecordInterface rec,
casacore::Bool  iscomponentlist = true,
casacore::Bool  incremental = false 
)
overridevirtual

Write/modify the ncorr x nrow SigmaMat.

virtual void writeSigmaMat(const casacore::Matrix<casacore::Float> & sigmat);

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::writeSigma ( const casacore::Matrix< casacore::Float > &  sig)
overridevirtual

Write/modify the Sigma.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::writeSigmaSpectrum ( const casacore::Cube< casacore::Float > &  sigsp)
overridevirtual

Write/modify the sigmaSpectrum.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::writeVisCorrected ( const casacore::Cube< casacore::Complex > &  vis)
overridevirtual

Write/modify the visibilities.

This is possibly only for a 'reference' casacore::MS which has a new DATA column. The first axis of the matrix should equal the selected number of channels in the original MS. If the casacore::MS does not contain all polarizations, only the parallel hand polarizations are used.

void writeVisCorrected(const casacore::Matrix<CStokesVector> & visibilityStokes); void writeVisModel(const casacore::Matrix<CStokesVector> & visibilityStokes); void writeVisObserved(const casacore::Matrix<CStokesVector> & visibilityStokes);

Write/modify the visibilities

This writes the data as found in the casacore::MS, casacore::Cube(npol,nchan,nrow).

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

virtual void casa::vi::VisibilityIteratorImpl2::writeVisModel ( const casacore::Cube< casacore::Complex > &  vis)
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::writeVisObserved ( const casacore::Cube< casacore::Complex > &  vis)
overridevirtual
virtual void casa::vi::VisibilityIteratorImpl2::writeWeight ( const casacore::Matrix< casacore::Float > &  wt)
overridevirtual

Write/modify the weights.

Implements casa::vi::ViImplementation2.

virtual void casa::vi::VisibilityIteratorImpl2::writeWeightSpectrum ( const casacore::Cube< casacore::Float > &  wtsp)
overridevirtual

Write/modify the weightMat

virtual void writeWeightMat(const casacore::Matrix<casacore::Float> & wtmat);

Write/modify the weightSpectrum

Implements casa::vi::ViImplementation2.

Reimplemented in casa::vi::VisibilityIteratorImplAsync2.

Friends And Related Function Documentation

friend class AsyncEnabler
friend

Definition at line 78 of file VisibilityIteratorImpl2.h.

friend class ViImplAsync2
friend

Definition at line 79 of file VisibilityIteratorImpl2.h.

friend class VisBuffer2Adapter
friend

Definition at line 82 of file VisibilityIteratorImpl2.h.

friend class VisibilityIterator2
friend

Definition at line 80 of file VisibilityIteratorImpl2.h.

friend class VLAT
friend

Definition at line 81 of file VisibilityIteratorImpl2.h.

Member Data Documentation

casacore::Bool casa::vi::VisibilityIteratorImpl2::autoTileCacheSizing_p
protected

Definition at line 1189 of file VisibilityIteratorImpl2.h.

std::map<VisBufferComponent2, BackWriter *> casa::vi::VisibilityIteratorImpl2::backWriters_p
protected

Definition at line 1190 of file VisibilityIteratorImpl2.h.

Cache casa::vi::VisibilityIteratorImpl2::cache_p
mutableprotected

general collection of cached values

Definition at line 1192 of file VisibilityIteratorImpl2.h.

const ChannelSelector* casa::vi::VisibilityIteratorImpl2::channelSelector_p
protected

[use] current channel selector for this casacore::MS & Spw

Definition at line 1194 of file VisibilityIteratorImpl2.h.

ChannelSelectorCache* casa::vi::VisibilityIteratorImpl2::channelSelectorCache_p
protected

[own] cache of recently used channel selectors

Definition at line 1196 of file VisibilityIteratorImpl2.h.

ViColumns2 casa::vi::VisibilityIteratorImpl2::columns_p
protected

The main columns for the current MS.

Definition at line 1198 of file VisibilityIteratorImpl2.h.

casacore::Bool casa::vi::VisibilityIteratorImpl2::floatDataFound_p
protected

true if a float data column was found

Definition at line 1200 of file VisibilityIteratorImpl2.h.

FrequencySelections* casa::vi::VisibilityIteratorImpl2::frequencySelections_p
protected

[own] Current frequency selection

Definition at line 1202 of file VisibilityIteratorImpl2.h.

VisImagingWeight casa::vi::VisibilityIteratorImpl2::imwgt_p
protected

object to calculate imaging weight

Definition at line 1204 of file VisibilityIteratorImpl2.h.

casacore::Int casa::vi::VisibilityIteratorImpl2::measurementFrame_p
mutableprotected

cached value of observatory type

Definition at line 1206 of file VisibilityIteratorImpl2.h.

MeasurementSets casa::vi::VisibilityIteratorImpl2::measurementSets_p
protected

Definition at line 1207 of file VisibilityIteratorImpl2.h.

VisModelDataI* casa::vi::VisibilityIteratorImpl2::modelDataGenerator_p
protected

Definition at line 1208 of file VisibilityIteratorImpl2.h.

casacore::Bool casa::vi::VisibilityIteratorImpl2::more_p
protected

true if more data in this chunk

Definition at line 1210 of file VisibilityIteratorImpl2.h.

casacore::MSDerivedValues casa::vi::VisibilityIteratorImpl2::msd_p
mutableprotected

Helper class holding casacore::MS derived values.

Definition at line 1218 of file VisibilityIteratorImpl2.h.

casacore::Int casa::vi::VisibilityIteratorImpl2::msIndex_p
protected

array index of current MS

Definition at line 1212 of file VisibilityIteratorImpl2.h.

casacore::CountedPtr<casacore::MSIter> casa::vi::VisibilityIteratorImpl2::msIter_p
protected

casacore::MS Iter that underlies the VI (sweeps in chunks)

Definition at line 1216 of file VisibilityIteratorImpl2.h.

Referenced by keyChange().

casacore::Bool casa::vi::VisibilityIteratorImpl2::msIterAtOrigin_p
protected

true if casacore::MS Iter is a start of first MS

Definition at line 1214 of file VisibilityIteratorImpl2.h.

casacore::Int casa::vi::VisibilityIteratorImpl2::nCorrelations_p
protected

Definition at line 1219 of file VisibilityIteratorImpl2.h.

casacore::Int casa::vi::VisibilityIteratorImpl2::nRowBlocking_p
protected

suggested # of rows in a subchunk

Definition at line 1221 of file VisibilityIteratorImpl2.h.

std::unique_ptr<PendingChanges> casa::vi::VisibilityIteratorImpl2::pendingChanges_p
protected

holds pending changes to VI properties

Definition at line 1223 of file VisibilityIteratorImpl2.h.

std::unique_ptr<PointingDirectionCache> casa::vi::VisibilityIteratorImpl2::pointingDirectionCache_p
mutableprotected

Definition at line 1224 of file VisibilityIteratorImpl2.h.

std::unique_ptr<PointingSource> casa::vi::VisibilityIteratorImpl2::pointingSource_p
mutableprotected

Definition at line 1225 of file VisibilityIteratorImpl2.h.

casacore::Int casa::vi::VisibilityIteratorImpl2::reportingFrame_p
protected

default frequency reporting (not selecting) frame of reference

Definition at line 1227 of file VisibilityIteratorImpl2.h.

RowBounds casa::vi::VisibilityIteratorImpl2::rowBounds_p
protected

Subchunk row management object (see above)

Definition at line 1229 of file VisibilityIteratorImpl2.h.

SortColumns casa::vi::VisibilityIteratorImpl2::sortColumns_p
protected

sort columns specified when creating VI

Definition at line 1231 of file VisibilityIteratorImpl2.h.

SpectralWindowChannelsCache* casa::vi::VisibilityIteratorImpl2::spectralWindowChannelsCache_p
mutableprotected

[own] Info about spectral windows

Definition at line 1233 of file VisibilityIteratorImpl2.h.

Subchunk casa::vi::VisibilityIteratorImpl2::subchunk_p
protected

(chunkN #, subchunk #) pair

Definition at line 1235 of file VisibilityIteratorImpl2.h.

SubtableColumns* casa::vi::VisibilityIteratorImpl2::subtableColumns_p
protected

[own] Allows const access to casacore::MS's subtable columns

Definition at line 1237 of file VisibilityIteratorImpl2.h.

std::shared_ptr<std::vector<bool> > casa::vi::VisibilityIteratorImpl2::tileCacheIsSet_p
protected

Definition at line 1240 of file VisibilityIteratorImpl2.h.

std::shared_ptr<std::mutex> casa::vi::VisibilityIteratorImpl2::tileCacheModMtx_p
protected

Definition at line 1239 of file VisibilityIteratorImpl2.h.

casacore::MeasRef<casacore::MEpoch> casa::vi::VisibilityIteratorImpl2::timeFrameOfReference_p
protected

Definition at line 1238 of file VisibilityIteratorImpl2.h.

casacore::Double casa::vi::VisibilityIteratorImpl2::timeInterval_p
protected

Definition at line 1241 of file VisibilityIteratorImpl2.h.

VisBuffer2* casa::vi::VisibilityIteratorImpl2::vb_p
protected

[own] VisBuffer attached to this VI

Definition at line 1244 of file VisibilityIteratorImpl2.h.

VisBufferType casa::vi::VisibilityIteratorImpl2::vbType
protected

Definition at line 1242 of file VisibilityIteratorImpl2.h.

casacore::CountedPtr<WeightScaling> casa::vi::VisibilityIteratorImpl2::weightScaling_p
protected

Definition at line 1245 of file VisibilityIteratorImpl2.h.

casacore::Bool casa::vi::VisibilityIteratorImpl2::writable_p
protected

Definition at line 1246 of file VisibilityIteratorImpl2.h.


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