#include <MsAverager.h>
Public Types | |
| enum | OutputMode { TableMS, ListBuffer } |
Public Member Functions | |
| MsAverager (MS *, OutputMode=MsAverager::TableMS) | |
| ~MsAverager () | |
| void | reset (MS *, OutputMode=MsAverager::TableMS) |
| void | getMS (MS &ms) |
| void | getXY (Vector< Double > &x, Vector< Double > &y, Vector< Int > &f, Int pol) |
| void | getMap (Matrix< Int > &rowMap, Matrix< Int > &chanMap) |
| void | setAverager (const Matrix< Int > &chanList, const Matrix< Int > &baselines, Double aveTime, Int aveChan, const String &column="DATA", const String &aveMode="VECTOR", const Bool &aveFlag=False, const Bool &aveScan=False, const Bool &aveBline=False, const Bool &aveArray=False, const Bool &aveVelo=False, const String &restfreq="", const String &frame="", const String &doppler="") |
| average engine and its status | |
| Bool | ok () |
| Int | outputFormat () |
| void | showColumnNames () |
| Bool | isDataColumn (const String &colNmae) |
| Bool | hasColumn (const String &colName) |
| Int | baselineRow (const Int &a=-1, const Int &b=-1) |
| void | putAveBuffer (Double bufTime, Int bufField, Int bufScan, Int bufArray, VisBuffer &p, Int nTime) |
| void | initAveBuffer (Double bufTime, VisBuffer &p, Int nAnt, Int nChan) |
| void | putAveTable (Double bufTime, Int bufField, Int bufScan, Int bufArray, Int bufSpw, VisBuffer &p, Int nTime, Double timeShift) |
| void | showVisRow (Cube< Complex > &vc, Int row) |
| void | showMsRow (MSMainColumns *msc, Int row) |
| void | showAveMap (Matrix< Int > &rmap, Matrix< Int > &cmap) |
| Int | npol () |
| Int | nchan () |
| Int | nAnt () |
Static Public Member Functions | |
| static Int | baselineRow (const Int &nAnt, const Int &a, const Int &b) |
Static Public Attributes | |
| static const String | DataColumn [4] |
Private Member Functions | |
| void | cleanup () |
| to be averaged | |
Private Attributes | |
| MS * | pMS |
| VisSet * | vs |
| String | msName |
| MS | aMS |
| MSDerivedValues *msdv;. | |
| Int | msRow |
| MSMainColumns * | msc |
| VisBuffer * | pAveBuff |
| MSColumns *msc;. | |
| List< VisBuffer * > | aveList |
| String | column |
| averaging inputs, ideally, calculate only needed column | |
| Matrix< Int > | chanList |
| selected channels for each piece for spw expression each row contains [spwid, start, end, stride] may contains multiple rows of same spwid | |
| Vector< SAS > | spw |
| Matrix< Int > | aveChanMap |
| map between averaged and original | |
| Matrix< Int > | aveRowMap |
| Matrix<Double> aveTimeMap;. | |
| String | aveMode |
| averaging requirements | |
| Double | aveTime |
| Int | aveChan |
| Bool | aveFlag |
| Bool | crossScans |
| Bool | crossBlines |
| Bool | crossArrays |
| Bool | crossSpws |
| Bool | aveVel |
| Bool | sorryVel |
| Matrix< Int > | baselines |
| Int | nAveChan |
| size of the averaged | |
| Int | nAveTime |
| Int | nAveRow |
| Int | nAvePol |
| Int | nAntenna |
| String | restfreq |
| String | frame |
| String | doppler |
| Bool | aveOK |
| int | outputMode |
| SLog *log;. | |
Static Private Attributes | |
| static const String | clname |
| utility | |
Definition at line 109 of file MsAverager.h.
Definition at line 113 of file MsAverager.h.
| casa::MsAverager::MsAverager | ( | MS * | , | |
| OutputMode | = MsAverager::TableMS | |||
| ) |
| casa::MsAverager::~MsAverager | ( | ) |
| Int casa::MsAverager::baselineRow | ( | const Int & | a = -1, |
|
| const Int & | b = -1 | |||
| ) |
| static Int casa::MsAverager::baselineRow | ( | const Int & | nAnt, | |
| const Int & | a, | |||
| const Int & | b | |||
| ) | [static] |
| void casa::MsAverager::cleanup | ( | ) | [private] |
to be averaged
| void casa::MsAverager::getMap | ( | Matrix< Int > & | rowMap, | |
| Matrix< Int > & | chanMap | |||
| ) |
| void casa::MsAverager::getMS | ( | MS & | ms | ) |
| void casa::MsAverager::getXY | ( | Vector< Double > & | x, | |
| Vector< Double > & | y, | |||
| Vector< Int > & | f, | |||
| Int | pol | |||
| ) |
| Bool casa::MsAverager::hasColumn | ( | const String & | colName | ) |
| void casa::MsAverager::initAveBuffer | ( | Double | bufTime, | |
| VisBuffer & | p, | |||
| Int | nAnt, | |||
| Int | nChan | |||
| ) |
| Bool casa::MsAverager::isDataColumn | ( | const String & | colNmae | ) |
| Int casa::MsAverager::nAnt | ( | ) | [inline] |
Definition at line 164 of file MsAverager.h.
References nAvePol.
| Int casa::MsAverager::nchan | ( | ) | [inline] |
Definition at line 163 of file MsAverager.h.
| Int casa::MsAverager::npol | ( | ) | [inline] |
Definition at line 162 of file MsAverager.h.
| Bool casa::MsAverager::ok | ( | ) | [inline] |
Definition at line 142 of file MsAverager.h.
| Int casa::MsAverager::outputFormat | ( | ) | [inline] |
Definition at line 143 of file MsAverager.h.
| void casa::MsAverager::putAveBuffer | ( | Double | bufTime, | |
| Int | bufField, | |||
| Int | bufScan, | |||
| Int | bufArray, | |||
| VisBuffer & | p, | |||
| Int | nTime | |||
| ) |
| void casa::MsAverager::putAveTable | ( | Double | bufTime, | |
| Int | bufField, | |||
| Int | bufScan, | |||
| Int | bufArray, | |||
| Int | bufSpw, | |||
| VisBuffer & | p, | |||
| Int | nTime, | |||
| Double | timeShift | |||
| ) |
| void casa::MsAverager::reset | ( | MS * | , | |
| OutputMode | = MsAverager::TableMS | |||
| ) |
| void casa::MsAverager::setAverager | ( | const Matrix< Int > & | chanList, | |
| const Matrix< Int > & | baselines, | |||
| Double | aveTime, | |||
| Int | aveChan, | |||
| const String & | column = "DATA", |
|||
| const String & | aveMode = "VECTOR", |
|||
| const Bool & | aveFlag = False, |
|||
| const Bool & | aveScan = False, |
|||
| const Bool & | aveBline = False, |
|||
| const Bool & | aveArray = False, |
|||
| const Bool & | aveVelo = False, |
|||
| const String & | restfreq = "", |
|||
| const String & | frame = "", |
|||
| const String & | doppler = "" | |||
| ) |
average engine and its status
| void casa::MsAverager::showAveMap | ( | Matrix< Int > & | rmap, | |
| Matrix< Int > & | cmap | |||
| ) |
| void casa::MsAverager::showColumnNames | ( | ) |
| void casa::MsAverager::showMsRow | ( | MSMainColumns * | msc, | |
| Int | row | |||
| ) |
| void casa::MsAverager::showVisRow | ( | Cube< Complex > & | vc, | |
| Int | row | |||
| ) |
MS casa::MsAverager::aMS [private] |
Int casa::MsAverager::aveChan [private] |
Definition at line 202 of file MsAverager.h.
Matrix<Int> casa::MsAverager::aveChanMap [private] |
map between averaged and original
Definition at line 195 of file MsAverager.h.
Bool casa::MsAverager::aveFlag [private] |
Definition at line 203 of file MsAverager.h.
List<VisBuffer*> casa::MsAverager::aveList [private] |
Definition at line 182 of file MsAverager.h.
String casa::MsAverager::aveMode [private] |
averaging requirements
Definition at line 200 of file MsAverager.h.
Bool casa::MsAverager::aveOK [private] |
Definition at line 223 of file MsAverager.h.
Matrix<Int> casa::MsAverager::aveRowMap [private] |
Matrix<Double> aveTimeMap;.
Definition at line 197 of file MsAverager.h.
Double casa::MsAverager::aveTime [private] |
Definition at line 201 of file MsAverager.h.
Bool casa::MsAverager::aveVel [private] |
Definition at line 208 of file MsAverager.h.
Matrix<Int> casa::MsAverager::baselines [private] |
Definition at line 210 of file MsAverager.h.
Matrix<Int> casa::MsAverager::chanList [private] |
selected channels for each piece for spw expression each row contains [spwid, start, end, stride] may contains multiple rows of same spwid
Definition at line 190 of file MsAverager.h.
const String casa::MsAverager::clname [static, private] |
utility
Definition at line 226 of file MsAverager.h.
String casa::MsAverager::column [private] |
averaging inputs, ideally, calculate only needed column
Definition at line 185 of file MsAverager.h.
Bool casa::MsAverager::crossArrays [private] |
Definition at line 206 of file MsAverager.h.
Bool casa::MsAverager::crossBlines [private] |
Definition at line 205 of file MsAverager.h.
Bool casa::MsAverager::crossScans [private] |
Definition at line 204 of file MsAverager.h.
Bool casa::MsAverager::crossSpws [private] |
Definition at line 207 of file MsAverager.h.
const String casa::MsAverager::DataColumn[4] [static] |
Definition at line 161 of file MsAverager.h.
String casa::MsAverager::doppler [private] |
Definition at line 221 of file MsAverager.h.
String casa::MsAverager::frame [private] |
Definition at line 220 of file MsAverager.h.
MSMainColumns* casa::MsAverager::msc [private] |
Definition at line 177 of file MsAverager.h.
String casa::MsAverager::msName [private] |
Definition at line 171 of file MsAverager.h.
Int casa::MsAverager::msRow [private] |
Definition at line 176 of file MsAverager.h.
Int casa::MsAverager::nAntenna [private] |
Definition at line 217 of file MsAverager.h.
Int casa::MsAverager::nAveChan [private] |
size of the averaged
Definition at line 213 of file MsAverager.h.
Int casa::MsAverager::nAvePol [private] |
Definition at line 216 of file MsAverager.h.
Referenced by nAnt().
Int casa::MsAverager::nAveRow [private] |
Definition at line 215 of file MsAverager.h.
Int casa::MsAverager::nAveTime [private] |
Definition at line 214 of file MsAverager.h.
int casa::MsAverager::outputMode [private] |
SLog *log;.
Definition at line 229 of file MsAverager.h.
VisBuffer* casa::MsAverager::pAveBuff [private] |
MS* casa::MsAverager::pMS [private] |
Definition at line 169 of file MsAverager.h.
String casa::MsAverager::restfreq [private] |
Definition at line 219 of file MsAverager.h.
Bool casa::MsAverager::sorryVel [private] |
Definition at line 209 of file MsAverager.h.
Vector<SAS> casa::MsAverager::spw [private] |
Definition at line 192 of file MsAverager.h.
VisSet* casa::MsAverager::vs [private] |
Definition at line 170 of file MsAverager.h.
1.6.1