casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
casa::MsAverager Class Reference

#include <MsAverager.h>

List of all members.

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

MSpMS
VisSetvs
String msName
MS aMS
 MSDerivedValues *msdv;.
Int msRow
MSMainColumnsmsc
VisBufferpAveBuff
 MSColumns *msc;.
List< VisBuffer * > aveList
String column
 averaging inputs, ideally, calculate only needed column
Matrix< IntchanList
 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< IntaveChanMap
 map between averaged and original
Matrix< IntaveRowMap
 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< Intbaselines
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

Detailed Description

Definition at line 112 of file MsAverager.h.


Member Enumeration Documentation

Enumerator:
TableMS 
ListBuffer 

Definition at line 116 of file MsAverager.h.


Constructor & Destructor Documentation


Member Function Documentation

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 
)

Definition at line 167 of file MsAverager.h.

References nAntenna.

Definition at line 166 of file MsAverager.h.

References nAveChan.

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.

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::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::showMsRow ( MSMainColumns msc,
Int  row 
)
void casa::MsAverager::showVisRow ( Cube< Complex > &  vc,
Int  row 
)

Member Data Documentation

MSDerivedValues *msdv;.

averaged, store as MS

Definition at line 178 of file MsAverager.h.

Definition at line 205 of file MsAverager.h.

map between averaged and original

Definition at line 198 of file MsAverager.h.

Definition at line 206 of file MsAverager.h.

Definition at line 185 of file MsAverager.h.

averaging requirements

Definition at line 203 of file MsAverager.h.

Definition at line 226 of file MsAverager.h.

Referenced by ok().

Matrix<Double> aveTimeMap;.

Definition at line 200 of file MsAverager.h.

Definition at line 204 of file MsAverager.h.

Definition at line 211 of file MsAverager.h.

Definition at line 213 of file MsAverager.h.

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.

averaging inputs, ideally, calculate only needed column

Definition at line 188 of file MsAverager.h.

Definition at line 209 of file MsAverager.h.

Definition at line 208 of file MsAverager.h.

Definition at line 207 of file MsAverager.h.

Definition at line 210 of file MsAverager.h.

Definition at line 164 of file MsAverager.h.

Definition at line 224 of file MsAverager.h.

Definition at line 223 of file MsAverager.h.

Definition at line 180 of file MsAverager.h.

Definition at line 174 of file MsAverager.h.

Definition at line 179 of file MsAverager.h.

Definition at line 220 of file MsAverager.h.

Referenced by nAnt().

size of the averaged

Definition at line 216 of file MsAverager.h.

Referenced by nchan().

Definition at line 219 of file MsAverager.h.

Referenced by npol().

Definition at line 218 of file MsAverager.h.

Definition at line 217 of file MsAverager.h.

SLog *log;.

Definition at line 232 of file MsAverager.h.

Referenced by outputFormat().

MSColumns *msc;.

averaged, store as VBs

Definition at line 184 of file MsAverager.h.

Definition at line 172 of file MsAverager.h.

Definition at line 222 of file MsAverager.h.

Definition at line 212 of file MsAverager.h.

Vector<SAS> casa::MsAverager::spw [private]

Definition at line 195 of file MsAverager.h.

Definition at line 173 of file MsAverager.h.


The documentation for this class was generated from the following file: