casa
5.7.0-16
|
ROCTIter: Read-only iterating interface to New Calibration tables. More...
#include <CTIter.h>
Protected Member Functions | |
virtual void | attach () |
Attach accessors. More... | |
Private Member Functions | |
ROCTIter (const ROCTIter &other) | |
Prohibit public use of copy, assignment. More... | |
ROCTIter & | operator= (const ROCTIter &other) |
Private Attributes | |
casacore::Vector < casacore::String > | sortCols_ |
casacore::Data: More... | |
casacore::Bool | singleSpw_ |
If true, spw is unique per iteration, and it is safe to access channel axis info. More... | |
NewCalTable | parentNCT_ |
The parent NewCalTable (casacore::Table) object (stays in scope for the life of the CTIter) More... | |
ROCTColumns | calCol_ |
Access to subtables (e.g., for frequencies) More... | |
casacore::TableIterator * | ti_ |
The underlying TableIterator. More... | |
NewCalTable * | inct_ |
Per-iteration table. More... | |
ROCTMainColumns * | iROCTMainCols_ |
Per-iteration columns. More... | |
ROCTIter: Read-only iterating interface to New Calibration tables.
From "calibration", "table", and "iteration".
The ROCTIter class provide basic iterated access to the contents of a NewCalTable. The iteration is initialized according to sort columns specified in the constructor, and access to the contents of each iteration is provided via a NewCalTable object (referencing the iterated subset of the original NewCalTable) or methods that return Vectors or Arrays of the contents of specific columns. For the latter, the Vectors/Arrays are generated only on-demand.
This class is used by calibration table clients to access calibration tables in a piecemeal fashion, e.g., for plotting, interpolation, etc.
casa::ROCTIter::ROCTIter | ( | NewCalTable | tab, |
const casacore::Block< casacore::String > & | sortcol | ||
) |
Constructor/Destructor.
|
virtual |
|
private |
Prohibit public use of copy, assignment.
casacore::Vector<casacore::Int> casa::ROCTIter::antenna1 | ( | ) | const |
void casa::ROCTIter::antenna1 | ( | casacore::Vector< casacore::Int > & | v | ) | const |
casacore::Vector<casacore::Int> casa::ROCTIter::antenna2 | ( | ) | const |
void casa::ROCTIter::antenna2 | ( | casacore::Vector< casacore::Int > & | v | ) | const |
|
protectedvirtual |
casacore::Cube<casacore::Float> casa::ROCTIter::casfparam | ( | casacore::String | what = "" | ) | const |
void casa::ROCTIter::casfparam | ( | casacore::Cube< casacore::Float > & | casf, |
casacore::String | what = "" |
||
) | const |
casacore::Vector<casacore::Int> casa::ROCTIter::chan | ( | ) | const |
void casa::ROCTIter::chan | ( | casacore::Vector< casacore::Int > & | v | ) | const |
casacore::Cube<casacore::Complex> casa::ROCTIter::cparam | ( | ) | const |
void casa::ROCTIter::cparam | ( | casacore::Cube< casacore::Complex > & | c | ) | const |
casacore::Vector<casacore::Int> casa::ROCTIter::field | ( | ) | const |
void casa::ROCTIter::field | ( | casacore::Vector< casacore::Int > & | v | ) | const |
casacore::Cube<casacore::Bool> casa::ROCTIter::flag | ( | ) | const |
void casa::ROCTIter::flag | ( | casacore::Cube< casacore::Bool > & | c | ) | const |
casacore::Cube<casacore::Float> casa::ROCTIter::fparam | ( | ) | const |
void casa::ROCTIter::fparam | ( | casacore::Cube< casacore::Float > & | c | ) | const |
casacore::Vector<casacore::Double> casa::ROCTIter::freq | ( | ) | const |
void casa::ROCTIter::freq | ( | casacore::Vector< casacore::Double > & | v | ) | const |
casacore::Vector<casacore::Double> casa::ROCTIter::interval | ( | ) | const |
void casa::ROCTIter::interval | ( | casacore::Vector< casacore::Double > & | v | ) | const |
casacore::Int casa::ROCTIter::nchan | ( | ) | const |
void casa::ROCTIter::next | ( | ) |
void casa::ROCTIter::next0 | ( | ) |
|
inline |
Definition at line 92 of file CTIter.h.
References casacore::Table::nrow(), casacore::TableIterator::table(), and ti_.
casacore::Vector<casacore::Int> casa::ROCTIter::obs | ( | ) | const |
void casa::ROCTIter::obs | ( | casacore::Vector< casacore::Int > & | v | ) | const |
casacore::Cube<casacore::Float> casa::ROCTIter::paramErr | ( | ) | const |
void casa::ROCTIter::paramErr | ( | casacore::Cube< casacore::Float > & | c | ) | const |
|
inline |
Definition at line 85 of file CTIter.h.
References casacore::TableIterator::pastEnd(), and ti_.
|
inline |
Iteration operators.
Definition at line 84 of file CTIter.h.
References attach(), casacore::TableIterator::reset(), and ti_.
casacore::Vector<casacore::Int> casa::ROCTIter::scan | ( | ) | const |
void casa::ROCTIter::scan | ( | casacore::Vector< casacore::Int > & | v | ) | const |
casacore::Cube<casacore::Float> casa::ROCTIter::snr | ( | ) | const |
void casa::ROCTIter::snr | ( | casacore::Cube< casacore::Float > & | c | ) | const |
casacore::Vector<casacore::Int> casa::ROCTIter::spw | ( | ) | const |
void casa::ROCTIter::spw | ( | casacore::Vector< casacore::Int > & | v | ) | const |
|
inline |
Return the current table iteration.
Definition at line 90 of file CTIter.h.
References casacore::TableIterator::table(), and ti_.
casacore::Int casa::ROCTIter::thisAntenna1 | ( | ) | const |
casacore::Int casa::ROCTIter::thisAntenna2 | ( | ) | const |
casacore::Int casa::ROCTIter::thisField | ( | ) | const |
casacore::Double casa::ROCTIter::thisInterval | ( | ) | const |
casacore::Int casa::ROCTIter::thisObs | ( | ) | const |
casacore::Int casa::ROCTIter::thisScan | ( | ) | const |
casacore::Int casa::ROCTIter::thisSpw | ( | ) | const |
casacore::Double casa::ROCTIter::thisTime | ( | ) | const |
Column accessors Those methods that return scalars for data coordinates (e.g., thisTime(), thisField(), etc.) return the first element of the corresponding vector of values in the current iteration.
This makes the most sense when the corresponding column is a sort column in the iteration, such that the contents of the vector is in fact a unique value. (TBD: return -1 from scalar methods when column is not unique?)
casacore::Vector<casacore::Double> casa::ROCTIter::time | ( | ) | const |
void casa::ROCTIter::time | ( | casacore::Vector< casacore::Double > & | v | ) | const |
casacore::Cube<casacore::Float> casa::ROCTIter::wt | ( | ) | const |
void casa::ROCTIter::wt | ( | casacore::Cube< casacore::Float > & | c | ) | const |
|
private |
|
private |
|
private |
|
private |
The parent NewCalTable (casacore::Table) object (stays in scope for the life of the CTIter)
|
private |
|
private |
|
private |