casa
$Rev:20696$
|
#include <CalSet.h>
Public Member Functions | |
CalSet () | |
Null ctor does nothing. | |
CalSet (const Int &nSpw) | |
Minimal, knows only how many potential spws (solve context) | |
CalSet (const Int &nSpw, const Int &nPar, const Vector< Int > &nChan, const Int &nElem, const Vector< Int > &nTime) | |
From full shape. | |
CalSet (const String &calTableName, const String &select, const Int &nSpw, const Int &nPar, const Int &nElem) | |
From existing CalTable (apply context) (for now, we will verify that filled solutions match nPar,nElem,nSpw) | |
CalSet (const CalSet &other) | |
Copy. | |
virtual | ~CalSet () |
Assignment virtual CalSet& operator=(const CalSet& other);. | |
void | resize (const Int &nPar, const Vector< Int > &nChan, const Int &nElem, const Vector< Int > &nTime) |
Resize caches. | |
Int & | nSpw () |
Access to shape info: | |
Int & | nPar () |
Vector< Int > & | nChan () |
Int & | nChan (const Int &spw) |
Int & | nElem () |
Vector< Int > & | nTime () |
Int & | nTime (const Int &spw) |
IPosition | shape (const Int &spw) |
IPosition& shape(const Int& spw) { return IPosition(4,nPar(),nChan(spw),nElem(),nTime(spw)); };. | |
void | setSpwOK () |
Set up spwOK according to solution availability. | |
Vector< Bool > | spwOK () |
Report if solutions available for specified spw. | |
Vector< Double > & | frequencies (const Int &spw) |
Freq list per spw. | |
void | setStartChan (const Vector< Int > &startChan) |
Temporary method to support current conventions in SVJ. | |
Vector< Int > & | startChan () |
Vector< Double > & | startTime (const Int &spw) |
Access to whole solution caches. | |
Vector< Double > & | stopTime (const Int &spw) |
Vector< Double > & | time (const Int &spw) |
Vector< Int > & | fieldId (const Int &spw) |
Vector< String > & | fieldName (const Int &spw) |
Vector< String > & | sourceName (const Int &spw) |
Array< T > & | par (const Int &spw) |
Array< Bool > & | parOK (const Int &spw) |
Array< Float > & | parErr (const Int &spw) |
Array< Float > & | parSNR (const Int &spw) |
Matrix< Float > & | iFit (const Int &spw) |
Statistics Matrix<Bool>& iSolutionOK(const Int& spw) { return *iSolutionOK_[spw]; };. | |
Matrix< Float > & | iFitwt (const Int &spw) |
Vector< Bool > & | solutionOK (const Int &spw) |
Vector< Float > & | fit (const Int &spw) |
Vector< Float > & | fitwt (const Int &spw) |
virtual void | initCalTableDesc (const String &type, const Int &parType) |
Store/Retrieve solutions to/from a table. | |
virtual void | attach () |
virtual void | store (const String &file, const String &type, const Bool &append, const String &msname="") |
virtual void | load (const String &file, const String &select) |
virtual void store(const String& file, const String& type, const String& msname, const Bool& append); | |
Private Member Functions | |
void | inflate () |
new/delete of cache | |
void | deflate () |
LogSink & | logSink () |
Private Attributes | |
String | calTableName_ |
Table name. | |
Int | nSpw_ |
Number of Spectral windows. | |
Int | nPar_ |
Number of parameters describing this calibration component. | |
Vector< Int > | nChan_ |
Number of channels. | |
Int | nElem_ |
Number of elements (ants or baselines) | |
Vector< Int > | nTime_ |
Number of time slots. | |
Vector< Bool > | spwOK_ |
Spw OK? | |
Vector< Int > | startChan_ |
Channel frequencies, etc. | |
PtrBlock< Vector< Double > * > | freq_ |
PtrBlock< Vector< Double > * > | MJDStart_ |
Per spw, per slot Meta information. | |
PtrBlock< Vector< Double > * > | MJDStop_ |
PtrBlock< Vector< Double > * > | MJDTimeStamp_ |
PtrBlock< Vector< Int > * > | fieldId_ |
PtrBlock< Vector< String > * > | fieldName_ |
PtrBlock< Vector< String > * > | sourceName_ |
PtrBlock< Array< T > * > | par_ |
Per spw, per channel, per element, per slot solution generic PARAMETER storage. | |
PtrBlock< Array< Bool > * > | parOK_ |
PtrBlock< Array< Float > * > | parErr_ |
PtrBlock< Array< Float > * > | parSNR_ |
PtrBlock< Matrix< Float > * > | iFit_ |
Statistics PtrBlock<Matrix<Bool>*> iSolutionOK_; // [nSpw_](nElem_,nSlots_) | |
PtrBlock< Matrix< Float > * > | iFitwt_ |
PtrBlock< Vector< Bool > * > | solutionOK_ |
PtrBlock< Vector< Float > * > | fit_ |
PtrBlock< Vector< Float > * > | fitwt_ |
LogSink | logSink_p |
CalTableDesc2 * | calTabDesc_ |
CalTable2 * | calTab_ |
SolvableCalSetMCol< T > * | svjmcol_ |
casa::CalSet< T >::CalSet | ( | ) | [inline] |
casa::CalSet< T >::CalSet | ( | const Int & | nSpw | ) |
Minimal, knows only how many potential spws (solve context)
casa::CalSet< T >::CalSet | ( | const Int & | nSpw, |
const Int & | nPar, | ||
const Vector< Int > & | nChan, | ||
const Int & | nElem, | ||
const Vector< Int > & | nTime | ||
) |
From full shape.
casa::CalSet< T >::CalSet | ( | const String & | calTableName, |
const String & | select, | ||
const Int & | nSpw, | ||
const Int & | nPar, | ||
const Int & | nElem | ||
) |
From existing CalTable (apply context) (for now, we will verify that filled solutions match nPar,nElem,nSpw)
casa::CalSet< T >::CalSet | ( | const CalSet< T > & | other | ) |
Copy.
virtual casa::CalSet< T >::~CalSet | ( | ) | [virtual] |
Assignment virtual CalSet& operator=(const CalSet& other);.
Destructor
virtual void casa::CalSet< T >::attach | ( | ) | [virtual] |
void casa::CalSet< T >::deflate | ( | ) | [private] |
Vector<Int>& casa::CalSet< T >::fieldId | ( | const Int & | spw | ) | [inline] |
Vector<String>& casa::CalSet< T >::fieldName | ( | const Int & | spw | ) | [inline] |
Vector<Float>& casa::CalSet< T >::fit | ( | const Int & | spw | ) | [inline] |
Vector<Float>& casa::CalSet< T >::fitwt | ( | const Int & | spw | ) | [inline] |
Vector<Double>& casa::CalSet< T >::frequencies | ( | const Int & | spw | ) | [inline] |
Freq list per spw.
Definition at line 112 of file CalSet.h.
Referenced by casa::CalInterp::csFreq().
Matrix<Float>& casa::CalSet< T >::iFit | ( | const Int & | spw | ) | [inline] |
Statistics Matrix<Bool>& iSolutionOK(const Int& spw) { return *iSolutionOK_[spw]; };.
Matrix<Float>& casa::CalSet< T >::iFitwt | ( | const Int & | spw | ) | [inline] |
void casa::CalSet< T >::inflate | ( | ) | [private] |
new/delete of cache
virtual void casa::CalSet< T >::initCalTableDesc | ( | const String & | type, |
const Int & | parType | ||
) | [virtual] |
Store/Retrieve solutions to/from a table.
(will evolve to use table iteration)
virtual void casa::CalSet< T >::load | ( | const String & | file, |
const String & | select | ||
) | [virtual] |
LogSink& casa::CalSet< T >::logSink | ( | ) | [inline, private] |
Vector<Int>& casa::CalSet< T >::nChan | ( | ) | [inline] |
Definition at line 96 of file CalSet.h.
Referenced by casa::CalInterp::nChan().
Int& casa::CalSet< T >::nChan | ( | const Int & | spw | ) | [inline] |
Int& casa::CalSet< T >::nElem | ( | ) | [inline] |
Definition at line 98 of file CalSet.h.
Referenced by casa::CalInterp::nElem().
Int& casa::CalSet< T >::nPar | ( | ) | [inline] |
Definition at line 95 of file CalSet.h.
Referenced by casa::CalInterp::nPar().
Int& casa::CalSet< T >::nSpw | ( | ) | [inline] |
Access to shape info:
Definition at line 94 of file CalSet.h.
Referenced by casa::CalInterp::nSpw().
Vector<Int>& casa::CalSet< T >::nTime | ( | ) | [inline] |
Definition at line 99 of file CalSet.h.
Referenced by casa::CalInterp::nTime(), and casa::CalSet< Complex >::setSpwOK().
Int& casa::CalSet< T >::nTime | ( | const Int & | spw | ) | [inline] |
Array<T>& casa::CalSet< T >::par | ( | const Int & | spw | ) | [inline] |
Definition at line 125 of file CalSet.h.
Referenced by casa::CalInterp::csPar(), casa::EPJones::getOffsets(), and casa::LJJones::getOffsets().
Array<Float>& casa::CalSet< T >::parErr | ( | const Int & | spw | ) | [inline] |
Array<Bool>& casa::CalSet< T >::parOK | ( | const Int & | spw | ) | [inline] |
Definition at line 126 of file CalSet.h.
Referenced by casa::CalInterp::csParOK().
Array<Float>& casa::CalSet< T >::parSNR | ( | const Int & | spw | ) | [inline] |
void casa::CalSet< T >::resize | ( | const Int & | nPar, |
const Vector< Int > & | nChan, | ||
const Int & | nElem, | ||
const Vector< Int > & | nTime | ||
) |
Resize caches.
void casa::CalSet< T >::setSpwOK | ( | ) | [inline] |
void casa::CalSet< T >::setStartChan | ( | const Vector< Int > & | startChan | ) | [inline] |
IPosition casa::CalSet< T >::shape | ( | const Int & | spw | ) | [inline] |
Vector<Bool>& casa::CalSet< T >::solutionOK | ( | const Int & | spw | ) | [inline] |
Vector<String>& casa::CalSet< T >::sourceName | ( | const Int & | spw | ) | [inline] |
Vector<Bool> casa::CalSet< T >::spwOK | ( | ) | [inline] |
Vector<Int>& casa::CalSet< T >::startChan | ( | ) | [inline] |
Definition at line 116 of file CalSet.h.
Referenced by casa::CalSet< Complex >::setStartChan().
Vector<Double>& casa::CalSet< T >::startTime | ( | const Int & | spw | ) | [inline] |
Vector<Double>& casa::CalSet< T >::stopTime | ( | const Int & | spw | ) | [inline] |
virtual void casa::CalSet< T >::store | ( | const String & | file, |
const String & | type, | ||
const Bool & | append, | ||
const String & | msname = "" |
||
) | [virtual] |
Vector<Double>& casa::CalSet< T >::time | ( | const Int & | spw | ) | [inline] |
Definition at line 121 of file CalSet.h.
Referenced by casa::CalInterp::csTimes(), casa::EPJones::getTime(), and casa::LJJones::getTime().
CalTable2* casa::CalSet< T >::calTab_ [private] |
CalTableDesc2* casa::CalSet< T >::calTabDesc_ [private] |
String casa::CalSet< T >::calTableName_ [private] |
PtrBlock<Vector<Int>*> casa::CalSet< T >::fieldId_ [private] |
Definition at line 187 of file CalSet.h.
Referenced by casa::CalSet< Complex >::fieldId().
PtrBlock<Vector<String>*> casa::CalSet< T >::fieldName_ [private] |
Definition at line 188 of file CalSet.h.
Referenced by casa::CalSet< Complex >::fieldName().
PtrBlock<Vector<Float>*> casa::CalSet< T >::fit_ [private] |
Definition at line 203 of file CalSet.h.
Referenced by casa::CalSet< Complex >::fit().
PtrBlock<Vector<Float>*> casa::CalSet< T >::fitwt_ [private] |
Definition at line 204 of file CalSet.h.
Referenced by casa::CalSet< Complex >::fitwt().
PtrBlock<Vector<Double>*> casa::CalSet< T >::freq_ [private] |
Definition at line 181 of file CalSet.h.
Referenced by casa::CalSet< Complex >::frequencies().
PtrBlock<Matrix<Float>*> casa::CalSet< T >::iFit_ [private] |
Statistics PtrBlock<Matrix<Bool>*> iSolutionOK_; // [nSpw_](nElem_,nSlots_)
Definition at line 199 of file CalSet.h.
Referenced by casa::CalSet< Complex >::iFit().
PtrBlock<Matrix<Float>*> casa::CalSet< T >::iFitwt_ [private] |
Definition at line 200 of file CalSet.h.
Referenced by casa::CalSet< Complex >::iFitwt().
LogSink casa::CalSet< T >::logSink_p [private] |
Definition at line 206 of file CalSet.h.
Referenced by casa::CalSet< Complex >::logSink().
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDStart_ [private] |
Per spw, per slot Meta information.
Definition at line 184 of file CalSet.h.
Referenced by casa::CalSet< Complex >::startTime().
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDStop_ [private] |
Definition at line 185 of file CalSet.h.
Referenced by casa::CalSet< Complex >::stopTime().
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDTimeStamp_ [private] |
Definition at line 186 of file CalSet.h.
Referenced by casa::CalSet< Complex >::time().
Vector<Int> casa::CalSet< T >::nChan_ [private] |
Number of channels.
Definition at line 168 of file CalSet.h.
Referenced by casa::CalSet< Complex >::nChan(), and casa::CalSet< Complex >::shape().
Int casa::CalSet< T >::nElem_ [private] |
Number of elements (ants or baselines)
Definition at line 171 of file CalSet.h.
Referenced by casa::CalSet< Complex >::nElem(), and casa::CalSet< Complex >::shape().
Int casa::CalSet< T >::nPar_ [private] |
Number of parameters describing this calibration component.
Definition at line 165 of file CalSet.h.
Referenced by casa::CalSet< Complex >::nPar(), and casa::CalSet< Complex >::shape().
Int casa::CalSet< T >::nSpw_ [private] |
Number of Spectral windows.
Definition at line 162 of file CalSet.h.
Referenced by casa::CalSet< Complex >::nSpw().
Vector<Int> casa::CalSet< T >::nTime_ [private] |
Number of time slots.
Definition at line 174 of file CalSet.h.
Referenced by casa::CalSet< Complex >::nTime(), and casa::CalSet< Complex >::shape().
PtrBlock<Array<T>*> casa::CalSet< T >::par_ [private] |
Per spw, per channel, per element, per slot solution generic PARAMETER storage.
Definition at line 192 of file CalSet.h.
Referenced by casa::CalSet< Complex >::par().
PtrBlock<Array<Float>*> casa::CalSet< T >::parErr_ [private] |
Definition at line 194 of file CalSet.h.
Referenced by casa::CalSet< Complex >::parErr().
PtrBlock<Array<Bool>*> casa::CalSet< T >::parOK_ [private] |
Definition at line 193 of file CalSet.h.
Referenced by casa::CalSet< Complex >::parOK().
PtrBlock<Array<Float>*> casa::CalSet< T >::parSNR_ [private] |
Definition at line 195 of file CalSet.h.
Referenced by casa::CalSet< Complex >::parSNR().
PtrBlock<Vector<Bool>*> casa::CalSet< T >::solutionOK_ [private] |
Definition at line 202 of file CalSet.h.
Referenced by casa::CalSet< Complex >::solutionOK().
PtrBlock<Vector<String>*> casa::CalSet< T >::sourceName_ [private] |
Definition at line 189 of file CalSet.h.
Referenced by casa::CalSet< Complex >::sourceName().
Vector<Bool> casa::CalSet< T >::spwOK_ [private] |
Spw OK?
Definition at line 177 of file CalSet.h.
Referenced by casa::CalSet< Complex >::setSpwOK(), and casa::CalSet< Complex >::spwOK().
Vector<Int> casa::CalSet< T >::startChan_ [private] |
Channel frequencies, etc.
Definition at line 180 of file CalSet.h.
Referenced by casa::CalSet< Complex >::setStartChan(), and casa::CalSet< Complex >::startChan().
SolvableCalSetMCol<T>* casa::CalSet< T >::svjmcol_ [private] |