casa
$Rev:20696$
|
#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 112 of file MsAverager.h.
Definition at line 116 of file MsAverager.h.
static Int casa::MsAverager::baselineRow | ( | const Int & | nAnt, |
const Int & | a, | ||
const Int & | b | ||
) | [static] |
Int casa::MsAverager::baselineRow | ( | const Int & | a = -1 , |
const Int & | b = -1 |
||
) |
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 167 of file MsAverager.h.
References nAntenna.
Int casa::MsAverager::nchan | ( | ) | [inline] |
Definition at line 166 of file MsAverager.h.
References nAveChan.
Int casa::MsAverager::npol | ( | ) | [inline] |
Definition at line 165 of file MsAverager.h.
References nAvePol.
Bool casa::MsAverager::ok | ( | ) | [inline] |
Definition at line 145 of file MsAverager.h.
References aveOK.
Int casa::MsAverager::outputFormat | ( | ) | [inline] |
Definition at line 146 of file MsAverager.h.
References outputMode.
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 205 of file MsAverager.h.
Matrix<Int> casa::MsAverager::aveChanMap [private] |
map between averaged and original
Definition at line 198 of file MsAverager.h.
Bool casa::MsAverager::aveFlag [private] |
Definition at line 206 of file MsAverager.h.
List<VisBuffer*> casa::MsAverager::aveList [private] |
Definition at line 185 of file MsAverager.h.
String casa::MsAverager::aveMode [private] |
averaging requirements
Definition at line 203 of file MsAverager.h.
Bool casa::MsAverager::aveOK [private] |
Definition at line 226 of file MsAverager.h.
Referenced by ok().
Matrix<Int> casa::MsAverager::aveRowMap [private] |
Matrix<Double> aveTimeMap;.
Definition at line 200 of file MsAverager.h.
Double casa::MsAverager::aveTime [private] |
Definition at line 204 of file MsAverager.h.
Bool casa::MsAverager::aveVel [private] |
Definition at line 211 of file MsAverager.h.
Matrix<Int> casa::MsAverager::baselines [private] |
Definition at line 213 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 193 of file MsAverager.h.
const String casa::MsAverager::clname [static, private] |
utility
Definition at line 229 of file MsAverager.h.
String casa::MsAverager::column [private] |
averaging inputs, ideally, calculate only needed column
Definition at line 188 of file MsAverager.h.
Bool casa::MsAverager::crossArrays [private] |
Definition at line 209 of file MsAverager.h.
Bool casa::MsAverager::crossBlines [private] |
Definition at line 208 of file MsAverager.h.
Bool casa::MsAverager::crossScans [private] |
Definition at line 207 of file MsAverager.h.
Bool casa::MsAverager::crossSpws [private] |
Definition at line 210 of file MsAverager.h.
const String casa::MsAverager::DataColumn[4] [static] |
Definition at line 164 of file MsAverager.h.
String casa::MsAverager::doppler [private] |
Definition at line 224 of file MsAverager.h.
String casa::MsAverager::frame [private] |
Definition at line 223 of file MsAverager.h.
MSMainColumns* casa::MsAverager::msc [private] |
Definition at line 180 of file MsAverager.h.
String casa::MsAverager::msName [private] |
Definition at line 174 of file MsAverager.h.
Int casa::MsAverager::msRow [private] |
Definition at line 179 of file MsAverager.h.
Int casa::MsAverager::nAntenna [private] |
Definition at line 220 of file MsAverager.h.
Referenced by nAnt().
Int casa::MsAverager::nAveChan [private] |
Int casa::MsAverager::nAvePol [private] |
Definition at line 219 of file MsAverager.h.
Referenced by npol().
Int casa::MsAverager::nAveRow [private] |
Definition at line 218 of file MsAverager.h.
Int casa::MsAverager::nAveTime [private] |
Definition at line 217 of file MsAverager.h.
int casa::MsAverager::outputMode [private] |
VisBuffer* casa::MsAverager::pAveBuff [private] |
MS* casa::MsAverager::pMS [private] |
Definition at line 172 of file MsAverager.h.
String casa::MsAverager::restfreq [private] |
Definition at line 222 of file MsAverager.h.
Bool casa::MsAverager::sorryVel [private] |
Definition at line 212 of file MsAverager.h.
Vector<SAS> casa::MsAverager::spw [private] |
Definition at line 195 of file MsAverager.h.
VisSet* casa::MsAverager::vs [private] |
Definition at line 173 of file MsAverager.h.