28 #ifndef MSVIS_VISITERATOR_H
29 #define MSVIS_VISITERATOR_H
112 class ROVisIteratorImpl;
266 class VisIteratorImpl;
351 VisIteratorImpl *
getImpl ()
const;
casacore::Vector< casacore::Double > & timeInterval(casacore::Vector< casacore::Double > &ti) const
Return nominal time interval.
casacore::Vector< casacore::Int > & chanIds(casacore::Vector< casacore::Int > &chanids) const
Return channel numbers in selected VisSet spectrum (i.e.
void selectChannel(const casacore::Vector< casacore::Vector< casacore::Slice > > &chansel)
Set up new chan/corr selection via casacore::Vector<casacore::Slice>
virtual ROVisIteratorImpl * getReadImpl() const
void setWeightMat(const casacore::Matrix< casacore::Float > &wtmat)
Set/modify the weightMat.
Main interface class to a read/write table.
void putDataColumn(DataColumn whichOne, const casacore::Vector< casacore::Vector< casacore::Slice > > &slices, const casacore::Cube< casacore::Complex > &data)
deals with casacore::Float or casacore::Complex observed data (DATA and FLOAT_DATA).
virtual void attachColumns(const casacore::Table &t)
attach the column objects to the currently selected table
void setVis(const casacore::Cube< casacore::Complex > &vis, DataColumn whichOne)
Set/modify the visibilities This sets the data as found in the casacore::MS, casacore::Cube(npol,nchan,nrow).
const casacore::MeasurementSet & ms() const
reference to actual ms in interator
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
void setVisAndFlag(const casacore::Cube< casacore::Complex > &vis, const casacore::Cube< casacore::Bool > &flag, DataColumn whichOne)
Set the visibility and flags, and interpolate from velocities if needed.
VisIterator & operator++()
void setFlagRow(const casacore::Vector< casacore::Bool > &rowflags)
Set/modify the flag row column; dimension casacore::Vector(nrow)
VisibilityIteratorReadImpl * operator()(const asyncio::PrefetchColumns *prefetchColumns, const casacore::Block< casacore::MeasurementSet > &mss, const casacore::Block< casacore::Int > &sortColumns, const casacore::Bool addDefaultSortCols, casacore::Double timeInterval) const
VisIterator & operator=(const VisIterator &MSI)
void getChannelSelection(casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &, casacore::Block< casacore::Vector< casacore::Int > > &)
The following throws an exception, because this isn't the language of channel selection in VisIterato...
VisibilityIteratorReadImpl * operator()(const asyncio::PrefetchColumns *prefetchColumns, const casacore::Block< casacore::MeasurementSet > &mss, const casacore::Block< casacore::Int > &sortColumns, const casacore::Bool addDefaultSortCols, casacore::Double timeInterval) const
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
void selectCorrelation(const casacore::Vector< casacore::Vector< casacore::Slice > > &corrsel)
casacore::Int numberChan(casacore::Int spw) const
Return number of chans/corrs per spw/pol.
virtual void putCol(casacore::ScalarColumn< casacore::Bool > &column, const casacore::Vector< casacore::Bool > &array)
column access functions
ROVisIterator()
Default constructor - useful only to assign another iterator later.
casacore::Vector< casacore::Int > & corrIds(casacore::Vector< casacore::Int > &corrids) const
Return selected correlation indices.
void lsrFrequency(const casacore::Int &spw, casacore::Vector< casacore::Double > &freq, casacore::Bool &convert, const casacore::Bool ignoreconv=false)
The PrefetchColumns class is used to specify a set of columns that can be prefetched when the (RO)Vis...
casacore::Vector< casacore::Int > & corrType(casacore::Vector< casacore::Int > &corrTypes) const
Return the correlation type (returns casacore::Stokes enums)
Factory(ROVisIterator *vi)
void setWeightSpectrum(const casacore::Cube< casacore::Float > &wtsp)
Set/modify the weightSpectrum.
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
VLAT should not access private parts, especially variables.
bool Bool
Define the standard types used by Casacore.
void allSelectedSpectralWindows(casacore::Vector< casacore::Int > &spws, casacore::Vector< casacore::Int > &nvischan)
Get selected spws and channel counts.
~ROVisIterator()
Destructor.
VisIteratorImpl * getImpl() const
A Table intended to hold astronomical data (a set of Measurements).
Specify which elements to extract from an n-dimensional array.
virtual ~VisIterator()
Destructor.
Base class for all Casacore library errors.
void setFlag(const casacore::Cube< casacore::Bool > &flag)
Set/modify the flags in the data.
VisIterator()
Constructors.
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
ROVisIterator & operator=(const ROVisIterator &other)
Assignment.
ROVisIterator & operator++()
casacore::Vector< casacore::Matrix< casacore::Int > > & setChanAveBounds(casacore::Float factor, casacore::Vector< casacore::Matrix< casacore::Int > > &bounds)
Set up/return channel averaging bounds.
virtual casacore::Cube< casacore::Bool > & flag(casacore::Cube< casacore::Bool > &flags) const
Return flag for each polarization, channel and row.
void getDataColumn(DataColumn whichOne, const casacore::Vector< casacore::Vector< casacore::Slice > > &slices, casacore::Cube< casacore::Complex > &data) const
casacore::Int numberCorr(casacore::Int pol) const