casa
5.7.0-16
|
A class to average VisBuffers for PlotMS. More...
#include <PlotMSVBAverager.h>
Public Member Functions | |
PlotMSVBAverager (casacore::Int nAnt) | |
Construct from the number of antennas, the averaging interval and the pre-normalization flag. More... | |
~PlotMSVBAverager () | |
Null destructor. More... | |
void | setBlnAveraging (casacore::Bool doBln) |
Set up baseline averaging. More... | |
void | setAntAveraging (casacore::Bool doAnt) |
Set up antenna averaging. More... | |
void | setScalarAve (casacore::Bool doScalar) |
Set scalar averaging flag. More... | |
void | setNoData () |
Control which data column to average. More... | |
void | setDoVC () |
void | setDoMVC () |
void | setDoCVC () |
void | setDoFC () |
void | setDoUVW () |
void | accumulate (vi::VisBuffer2 &vb) |
Accumulate a VisBuffer. More... | |
void | finalizeAverage () |
Finalize averaging. More... | |
vi::VisBuffer2 & | aveVisBuff () |
Return a reference to the result. More... | |
Private Member Functions | |
PlotMSVBAverager () | |
Prohibit null constructor, copy constructor and assignment for now. More... | |
PlotMSVBAverager & | operator= (const PlotMSVBAverager &) |
PlotMSVBAverager (const PlotMSVBAverager &) | |
casacore::Int & | prtlev () |
Diagnostic printing level. More... | |
void | initialize (vi::VisBuffer2 &vb) |
Initialize the next accumulation interval. More... | |
void | simpAccumulate (vi::VisBuffer2 &vb) |
Different accumulate versions. More... | |
void | antAccumulate (vi::VisBuffer2 &vb) |
void | verifyCrosshands (vi::VisBuffer2 &vb) |
Verify zero or two crosshands present (if antAve_p) More... | |
casacore::Int | baseline (const casacore::Int &ant1, const casacore::Int &ant2) |
Hash function to return the row offset for an interferometer (ant1, ant2) More... | |
void | convertToAP (casacore::Cube< casacore::Complex > &d) |
Convert r/i to a/p. More... | |
void | fillIds (casacore::Int nrows) |
fill vector that is resized larger More... | |
A class to average VisBuffers for PlotMS.
Public interface
This class averages VisBuffers together for PlotMS
Definition at line 74 of file PlotMSVBAverager.h.
casa::PlotMSVBAverager::PlotMSVBAverager | ( | casacore::Int | nAnt | ) |
Construct from the number of antennas, the averaging interval and the pre-normalization flag.
casa::PlotMSVBAverager::~PlotMSVBAverager | ( | ) |
Null destructor.
|
private |
Prohibit null constructor, copy constructor and assignment for now.
|
private |
|
inline |
Accumulate a VisBuffer.
Definition at line 105 of file PlotMSVBAverager.h.
References antAccumulate(), antAve_p, and simpAccumulate().
|
private |
Referenced by accumulate().
|
inline |
Return a reference to the result.
Definition at line 111 of file PlotMSVBAverager.h.
References avBuf_p.
|
private |
Hash function to return the row offset for an interferometer (ant1, ant2)
|
private |
Convert r/i to a/p.
|
private |
fill vector that is resized larger
void casa::PlotMSVBAverager::finalizeAverage | ( | ) |
Finalize averaging.
|
private |
Initialize the next accumulation interval.
|
private |
|
inlineprivate |
|
inline |
Set up antenna averaging.
Definition at line 88 of file PlotMSVBAverager.h.
References antAve_p, and setBlnAveraging().
Referenced by setBlnAveraging().
|
inline |
Set up baseline averaging.
Definition at line 85 of file PlotMSVBAverager.h.
References blnAve_p, and setAntAveraging().
Referenced by setAntAveraging().
|
inline |
Definition at line 100 of file PlotMSVBAverager.h.
|
inline |
Definition at line 101 of file PlotMSVBAverager.h.
|
inline |
Definition at line 99 of file PlotMSVBAverager.h.
|
inline |
Definition at line 102 of file PlotMSVBAverager.h.
References doUVW_p.
|
inline |
Definition at line 98 of file PlotMSVBAverager.h.
|
inline |
|
inline |
Set scalar averaging flag.
cout << "Using " << (doScalar ? "SCALAR" : "VECTOR") << " averaging." << endl;
Definition at line 91 of file PlotMSVBAverager.h.
References inCoh_p.
|
private |
Different accumulate versions.
Referenced by accumulate().
|
private |
Verify zero or two crosshands present (if antAve_p)
|
private |
Are we averaging antennas together?
Definition at line 154 of file PlotMSVBAverager.h.
Referenced by accumulate(), and setAntAveraging().
|
private |
|
private |
Definition at line 164 of file PlotMSVBAverager.h.
|
private |
Definition at line 167 of file PlotMSVBAverager.h.
|
private |
Definition at line 163 of file PlotMSVBAverager.h.
|
private |
Definition at line 193 of file PlotMSVBAverager.h.
|
private |
Definition at line 194 of file PlotMSVBAverager.h.
|
private |
Definition at line 187 of file PlotMSVBAverager.h.
|
private |
Definition at line 189 of file PlotMSVBAverager.h.
|
private |
Definition at line 190 of file PlotMSVBAverager.h.
|
private |
Definition at line 188 of file PlotMSVBAverager.h.
|
private |
Definition at line 186 of file PlotMSVBAverager.h.
|
private |
Definition at line 197 of file PlotMSVBAverager.h.
|
private |
Definition at line 195 of file PlotMSVBAverager.h.
|
private |
Definition at line 196 of file PlotMSVBAverager.h.
|
private |
Definition at line 192 of file PlotMSVBAverager.h.
|
private |
Mutable arrays, set in avBuf_p when finalized.
Definition at line 185 of file PlotMSVBAverager.h.
|
private |
Definition at line 191 of file PlotMSVBAverager.h.
|
private |
Are we averaging baselines together?
Definition at line 151 of file PlotMSVBAverager.h.
Referenced by setBlnAveraging().
|
private |
Validation by baseline (if false, no attempt to accumulate this baseline)
Definition at line 148 of file PlotMSVBAverager.h.
|
private |
Definition at line 165 of file PlotMSVBAverager.h.
|
private |
Weights in input VBs are chan-independent.
Definition at line 145 of file PlotMSVBAverager.h.
|
private |
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoCVC(), and setNoData().
|
private |
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoFC(), and setNoData().
|
private |
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoMVC(), and setNoData().
|
private |
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoUVW(), and setNoData().
|
private |
Optional averaging triggers.
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoVC(), and setNoData().
|
private |
Definition at line 170 of file PlotMSVBAverager.h.
Referenced by setDoCVC(), setDoFC(), setDoMVC(), setDoVC(), and setNoData().
|
private |
Need to resize these in final avBuf.
Definition at line 199 of file PlotMSVBAverager.h.
|
private |
Are we incoherently (scalar) averaging?
Definition at line 157 of file PlotMSVBAverager.h.
Referenced by setScalarAve().
|
private |
Keep track of initialization state.
Definition at line 176 of file PlotMSVBAverager.h.
|
private |
Correlation list for cross-hand swapping.
Definition at line 179 of file PlotMSVBAverager.h.
|
private |
Definition at line 162 of file PlotMSVBAverager.h.
|
private |
Definition at line 161 of file PlotMSVBAverager.h.
|
private |
Number of antennas, correlations, and channels.
Definition at line 142 of file PlotMSVBAverager.h.
|
private |
Definition at line 142 of file PlotMSVBAverager.h.
|
private |
Definition at line 142 of file PlotMSVBAverager.h.
|
private |
Definition at line 142 of file PlotMSVBAverager.h.
|
private |
Definition at line 201 of file PlotMSVBAverager.h.
|
private |
|
private |
Definition at line 200 of file PlotMSVBAverager.h.
|
private |
Definition at line 202 of file PlotMSVBAverager.h.
|
private |
Accumulation helpers...
Definition at line 160 of file PlotMSVBAverager.h.
|
private |
Definition at line 166 of file PlotMSVBAverager.h.