casa
$Rev:20696$
|
A class to average VisBuffers for PlotMS. More...
#include <PlotMSVBAverager.h>
Public Member Functions | |
PlotMSVBAverager (Int nAnt, Bool chanDepWt) | |
Construct from the number of antennas, the averaging interval and the pre-normalization flag. | |
~PlotMSVBAverager () | |
Null destructor. | |
void | setBlnAveraging (Bool doBln) |
Set up baseline averaging. | |
void | setAntAveraging (Bool doAnt) |
Set up baseline averaging. | |
void | setScalarAve (Bool doScalar) |
Set scalar averaging flag. | |
void | setNoData () |
Control which data column to average. | |
void | setDoVC () |
void | setDoMVC () |
void | setDoCVC () |
void | setDoUVW () |
void | accumulate (VisBuffer &vb) |
Accumulate a VisBuffer. | |
void | finalizeAverage () |
Finalize averaging, and return the result. | |
VisBuffer & | aveVisBuff () |
Return a reference to the result TBD: is it ok to return a CVB as a VB reference? (do I need an explicit cast here? | |
CalVisBuffer & | aveCalVisBuff () |
Private Member Functions | |
PlotMSVBAverager () | |
Prohibit null constructor, copy constructor and assignment for now. | |
PlotMSVBAverager & | operator= (const PlotMSVBAverager &) |
PlotMSVBAverager (const PlotMSVBAverager &) | |
Int & | prtlev () |
Diagnostic printing level. | |
void | initialize (VisBuffer &vb) |
Initialize the next accumulation interval (should this be public?) | |
void | simpAccumulate (VisBuffer &vb) |
Different accumulate versions. | |
void | antAccumulate (VisBuffer &vb) |
void | verifyCrosshands (VisBuffer &vb) |
Verify zero or two crosshands present (if antAve_p) | |
Int | baseline (const Int &ant1, const Int &ant2) |
Hash function to return the row offset for an interferometer (ant1, ant2) | |
void | convertToAP (Cube< Complex > &d) |
Convert r/i to a/p. | |
Private Attributes | |
Int | nAnt_p |
Number of antennas, correlations, and channels. | |
Int | nCorr_p |
Int | nChan_p |
Int | nBlnMax_p |
Bool | chanIndepWt_p |
Weights in input VBs are chan-independent. | |
Vector< Bool > | blnOK_p |
Validation by baseline (if False, no attempt to accumulate this baseline) | |
Bool | blnAve_p |
Are we averaging baselines together? | |
Bool | antAve_p |
Are we averaging antennas together? | |
Bool | inCoh_p |
Are we incoherently (scalar) averaging? | |
Double | timeRef_p |
Accumulation helpers... | |
Double | minTime_p |
Double | maxTime_p |
Double | aveTime_p |
Double | aveInterval_p |
Vector< Double > | blnWtSum_p |
Double | vbWtSum_p |
Int | aveScan_p |
Bool | doVC_p |
Optional averaging triggers. | |
Bool | doMVC_p |
Bool | doCVC_p |
Bool | doUVW_p |
Bool | doWC_p |
CalVisBuffer | avBuf_p |
Accumulation buffer. | |
Bool | initialized_p |
Keep track of initialization state. | |
Vector< Int > | jcor_p |
Correlation list for cross-hand swapping. | |
Int | prtlev_ |
Diagnostic print level. |
A class to average VisBuffers for PlotMS.
Public interface
This class averages VisBuffers together for PlotMS
Definition at line 72 of file PlotMSVBAverager.h.
casa::PlotMSVBAverager::PlotMSVBAverager | ( | Int | nAnt, |
Bool | chanDepWt | ||
) |
Construct from the number of antennas, the averaging interval and the pre-normalization flag.
Null destructor.
casa::PlotMSVBAverager::PlotMSVBAverager | ( | ) | [private] |
Prohibit null constructor, copy constructor and assignment for now.
casa::PlotMSVBAverager::PlotMSVBAverager | ( | const PlotMSVBAverager & | ) | [private] |
void casa::PlotMSVBAverager::accumulate | ( | VisBuffer & | vb | ) | [inline] |
Accumulate a VisBuffer.
Definition at line 102 of file PlotMSVBAverager.h.
References antAccumulate(), antAve_p, and simpAccumulate().
void casa::PlotMSVBAverager::antAccumulate | ( | VisBuffer & | vb | ) | [private] |
Referenced by accumulate().
CalVisBuffer& casa::PlotMSVBAverager::aveCalVisBuff | ( | ) | [inline] |
Definition at line 111 of file PlotMSVBAverager.h.
References avBuf_p.
VisBuffer& casa::PlotMSVBAverager::aveVisBuff | ( | ) | [inline] |
Return a reference to the result TBD: is it ok to return a CVB as a VB reference? (do I need an explicit cast here?
Definition at line 110 of file PlotMSVBAverager.h.
References avBuf_p.
Int casa::PlotMSVBAverager::baseline | ( | const Int & | ant1, |
const Int & | ant2 | ||
) | [private] |
Hash function to return the row offset for an interferometer (ant1, ant2)
void casa::PlotMSVBAverager::convertToAP | ( | Cube< Complex > & | d | ) | [private] |
Convert r/i to a/p.
Finalize averaging, and return the result.
void casa::PlotMSVBAverager::initialize | ( | VisBuffer & | vb | ) | [private] |
Initialize the next accumulation interval (should this be public?)
PlotMSVBAverager& casa::PlotMSVBAverager::operator= | ( | const PlotMSVBAverager & | ) | [private] |
Int& casa::PlotMSVBAverager::prtlev | ( | ) | [inline, private] |
void casa::PlotMSVBAverager::setAntAveraging | ( | Bool | doAnt | ) | [inline] |
Set up baseline averaging.
Definition at line 86 of file PlotMSVBAverager.h.
References antAve_p, casa::False, and setBlnAveraging().
Referenced by setBlnAveraging().
void casa::PlotMSVBAverager::setBlnAveraging | ( | Bool | doBln | ) | [inline] |
Set up baseline averaging.
Definition at line 83 of file PlotMSVBAverager.h.
References blnAve_p, casa::False, and setAntAveraging().
Referenced by setAntAveraging().
void casa::PlotMSVBAverager::setDoCVC | ( | ) | [inline] |
Definition at line 98 of file PlotMSVBAverager.h.
References doCVC_p, doWC_p, and casa::True.
void casa::PlotMSVBAverager::setDoMVC | ( | ) | [inline] |
Definition at line 97 of file PlotMSVBAverager.h.
References doMVC_p, doWC_p, and casa::True.
void casa::PlotMSVBAverager::setDoUVW | ( | ) | [inline] |
Definition at line 99 of file PlotMSVBAverager.h.
References doUVW_p, and casa::True.
void casa::PlotMSVBAverager::setDoVC | ( | ) | [inline] |
Definition at line 96 of file PlotMSVBAverager.h.
References doVC_p, doWC_p, and casa::True.
void casa::PlotMSVBAverager::setNoData | ( | ) | [inline] |
Control which data column to average.
Definition at line 95 of file PlotMSVBAverager.h.
References doCVC_p, doMVC_p, doUVW_p, doVC_p, doWC_p, and casa::False.
void casa::PlotMSVBAverager::setScalarAve | ( | Bool | doScalar | ) | [inline] |
Set scalar averaging flag.
cout << "Using " << (doScalar ? "SCALAR" : "VECTOR") << " averaging." << endl;
Definition at line 90 of file PlotMSVBAverager.h.
References inCoh_p.
void casa::PlotMSVBAverager::simpAccumulate | ( | VisBuffer & | vb | ) | [private] |
Different accumulate versions.
Referenced by accumulate().
void casa::PlotMSVBAverager::verifyCrosshands | ( | VisBuffer & | vb | ) | [private] |
Verify zero or two crosshands present (if antAve_p)
Bool casa::PlotMSVBAverager::antAve_p [private] |
Are we averaging antennas together?
Definition at line 152 of file PlotMSVBAverager.h.
Referenced by accumulate(), and setAntAveraging().
CalVisBuffer casa::PlotMSVBAverager::avBuf_p [private] |
Accumulation buffer.
Definition at line 171 of file PlotMSVBAverager.h.
Referenced by aveCalVisBuff(), and aveVisBuff().
Double casa::PlotMSVBAverager::aveInterval_p [private] |
Definition at line 162 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::aveScan_p [private] |
Definition at line 165 of file PlotMSVBAverager.h.
Double casa::PlotMSVBAverager::aveTime_p [private] |
Definition at line 161 of file PlotMSVBAverager.h.
Bool casa::PlotMSVBAverager::blnAve_p [private] |
Are we averaging baselines together?
Definition at line 149 of file PlotMSVBAverager.h.
Referenced by setBlnAveraging().
Vector<Bool> casa::PlotMSVBAverager::blnOK_p [private] |
Validation by baseline (if False, no attempt to accumulate this baseline)
Definition at line 146 of file PlotMSVBAverager.h.
Vector<Double> casa::PlotMSVBAverager::blnWtSum_p [private] |
Definition at line 163 of file PlotMSVBAverager.h.
Bool casa::PlotMSVBAverager::chanIndepWt_p [private] |
Weights in input VBs are chan-independent.
Definition at line 143 of file PlotMSVBAverager.h.
Bool casa::PlotMSVBAverager::doCVC_p [private] |
Definition at line 168 of file PlotMSVBAverager.h.
Referenced by setDoCVC(), and setNoData().
Bool casa::PlotMSVBAverager::doMVC_p [private] |
Definition at line 168 of file PlotMSVBAverager.h.
Referenced by setDoMVC(), and setNoData().
Bool casa::PlotMSVBAverager::doUVW_p [private] |
Definition at line 168 of file PlotMSVBAverager.h.
Referenced by setDoUVW(), and setNoData().
Bool casa::PlotMSVBAverager::doVC_p [private] |
Optional averaging triggers.
Definition at line 168 of file PlotMSVBAverager.h.
Referenced by setDoVC(), and setNoData().
Bool casa::PlotMSVBAverager::doWC_p [private] |
Definition at line 168 of file PlotMSVBAverager.h.
Referenced by setDoCVC(), setDoMVC(), setDoVC(), and setNoData().
Bool casa::PlotMSVBAverager::inCoh_p [private] |
Are we incoherently (scalar) averaging?
Definition at line 155 of file PlotMSVBAverager.h.
Referenced by setScalarAve().
Bool casa::PlotMSVBAverager::initialized_p [private] |
Keep track of initialization state.
Definition at line 174 of file PlotMSVBAverager.h.
Vector<Int> casa::PlotMSVBAverager::jcor_p [private] |
Correlation list for cross-hand swapping.
Definition at line 177 of file PlotMSVBAverager.h.
Double casa::PlotMSVBAverager::maxTime_p [private] |
Definition at line 160 of file PlotMSVBAverager.h.
Double casa::PlotMSVBAverager::minTime_p [private] |
Definition at line 159 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::nAnt_p [private] |
Number of antennas, correlations, and channels.
Definition at line 140 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::nBlnMax_p [private] |
Definition at line 140 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::nChan_p [private] |
Definition at line 140 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::nCorr_p [private] |
Definition at line 140 of file PlotMSVBAverager.h.
Int casa::PlotMSVBAverager::prtlev_ [private] |
Double casa::PlotMSVBAverager::timeRef_p [private] |
Accumulation helpers...
Definition at line 158 of file PlotMSVBAverager.h.
Double casa::PlotMSVBAverager::vbWtSum_p [private] |
Definition at line 164 of file PlotMSVBAverager.h.