casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
casa::MsAverager Class Reference

#include <MsAverager.h>

Public Types

enum  OutputMode {
  TableMS,
  ListBuffer
}
 

Public Member Functions

 MsAverager (casacore::MS *, OutputMode=MsAverager::TableMS)
 
 ~MsAverager ()
 
void reset (casacore::MS *, OutputMode=MsAverager::TableMS)
 
void getMS (casacore::MS &ms)
 
void getXY (casacore::Vector< casacore::Double > &x, casacore::Vector< casacore::Double > &y, casacore::Vector< casacore::Int > &f, casacore::Int pol)
 
void getMap (casacore::Matrix< casacore::Int > &rowMap, casacore::Matrix< casacore::Int > &chanMap)
 
void setAverager (const casacore::Matrix< casacore::Int > &chanList, const casacore::Matrix< casacore::Int > &baselines, casacore::Double aveTime, casacore::Int aveChan, const casacore::String &column="DATA", const casacore::String &aveMode="VECTOR", const casacore::Bool &aveFlag=false, const casacore::Bool &aveScan=false, const casacore::Bool &aveBline=false, const casacore::Bool &aveArray=false, const casacore::Bool &aveVelo=false, const casacore::String &restfreq="", const casacore::String &frame="", const casacore::String &doppler="")
 average engine and its status More...
 
casacore::Bool ok ()
 
casacore::Int outputFormat ()
 
void showColumnNames ()
 
casacore::Bool isDataColumn (const casacore::String &colNmae)
 
casacore::Bool hasColumn (const casacore::String &colName)
 
casacore::Int baselineRow (const casacore::Int &a=-1, const casacore::Int &b=-1)
 
void putAveBuffer (casacore::Double bufTime, casacore::Int bufField, casacore::Int bufScan, casacore::Int bufArray, VisBuffer &p, casacore::Int nTime)
 
void initAveBuffer (casacore::Double bufTime, VisBuffer &p, casacore::Int nAnt, casacore::Int nChan)
 
void putAveTable (casacore::Double bufTime, casacore::Int bufField, casacore::Int bufScan, casacore::Int bufArray, casacore::Int bufSpw, VisBuffer &p, casacore::Int nTime, casacore::Double timeShift)
 
void showVisRow (casacore::Cube< casacore::Complex > &vc, casacore::Int row)
 
void showMsRow (casacore::MSMainColumns *msc, casacore::Int row)
 
void showAveMap (casacore::Matrix< casacore::Int > &rmap, casacore::Matrix< casacore::Int > &cmap)
 
casacore::Int npol ()
 
casacore::Int nchan ()
 
casacore::Int nAnt ()
 

Static Public Member Functions

static casacore::Int baselineRow (const casacore::Int &nAnt, const casacore::Int &a, const casacore::Int &b)
 

Static Public Attributes

static const casacore::String DataColumn [4]
 

Private Member Functions

void cleanup ()
 to be averaged More...
 

Private Attributes

casacore::MSpMS
 
VisSetvs
 
casacore::String msName
 
casacore::MS aMS
 casacore::MSDerivedValues *msdv; More...
 
casacore::Int msRow
 
casacore::MSMainColumnsmsc
 
VisBufferpAveBuff
 casacore::MSColumns *msc; More...
 
std::list< VisBuffer * > aveList
 
casacore::String column
 averaging inputs, ideally, calculate only needed column More...
 
casacore::Matrix< casacore::IntchanList
 selected channels for each piece for spw expression each row contains [spwid, start, end, stride] may contains multiple rows of same spwid More...
 
casacore::Vector< SAS > spw
 
casacore::Matrix< casacore::IntaveChanMap
 map between averaged and original More...
 
casacore::Matrix< casacore::IntaveRowMap
 casacore::Matrix<casacore::Double> aveTimeMap; More...
 
casacore::String aveMode
 averaging requirements More...
 
casacore::Double aveTime
 
casacore::Int aveChan
 
casacore::Bool aveFlag
 
casacore::Bool crossScans
 
casacore::Bool crossBlines
 
casacore::Bool crossArrays
 
casacore::Bool crossSpws
 
casacore::Bool aveVel
 
casacore::Bool sorryVel
 
casacore::Matrix< casacore::Intbaselines
 
casacore::Int nAveChan
 size of the averaged More...
 
casacore::Int nAveTime
 
casacore::Int nAveRow
 
casacore::Int nAvePol
 
casacore::Int nAntenna
 
casacore::String restfreq
 
casacore::String frame
 
casacore::String doppler
 
casacore::Bool aveOK
 
int outputMode
 SLog *log;. More...
 

Static Private Attributes

static const casacore::String clname
 utility More...
 

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

casa::MsAverager::MsAverager ( casacore::MS ,
OutputMode  = MsAverager::TableMS 
)
casa::MsAverager::~MsAverager ( )

Member Function Documentation

static casacore::Int casa::MsAverager::baselineRow ( const casacore::Int nAnt,
const casacore::Int a,
const casacore::Int b 
)
static
casacore::Int casa::MsAverager::baselineRow ( const casacore::Int a = -1,
const casacore::Int b = -1 
)
void casa::MsAverager::cleanup ( )
private

to be averaged

void casa::MsAverager::getMap ( casacore::Matrix< casacore::Int > &  rowMap,
casacore::Matrix< casacore::Int > &  chanMap 
)
void casa::MsAverager::getMS ( casacore::MS ms)
void casa::MsAverager::getXY ( casacore::Vector< casacore::Double > &  x,
casacore::Vector< casacore::Double > &  y,
casacore::Vector< casacore::Int > &  f,
casacore::Int  pol 
)
casacore::Bool casa::MsAverager::hasColumn ( const casacore::String colName)
void casa::MsAverager::initAveBuffer ( casacore::Double  bufTime,
VisBuffer p,
casacore::Int  nAnt,
casacore::Int  nChan 
)
casacore::Bool casa::MsAverager::isDataColumn ( const casacore::String colNmae)
casacore::Int casa::MsAverager::nAnt ( )
inline

Definition at line 167 of file MsAverager.h.

References nAntenna.

casacore::Int casa::MsAverager::nchan ( )
inline

Definition at line 166 of file MsAverager.h.

References nAveChan.

casacore::Int casa::MsAverager::npol ( )
inline

Definition at line 165 of file MsAverager.h.

References nAvePol.

casacore::Bool casa::MsAverager::ok ( )
inline

Definition at line 145 of file MsAverager.h.

References aveOK.

casacore::Int casa::MsAverager::outputFormat ( )
inline

Definition at line 146 of file MsAverager.h.

References outputMode.

void casa::MsAverager::putAveBuffer ( casacore::Double  bufTime,
casacore::Int  bufField,
casacore::Int  bufScan,
casacore::Int  bufArray,
VisBuffer p,
casacore::Int  nTime 
)
void casa::MsAverager::putAveTable ( casacore::Double  bufTime,
casacore::Int  bufField,
casacore::Int  bufScan,
casacore::Int  bufArray,
casacore::Int  bufSpw,
VisBuffer p,
casacore::Int  nTime,
casacore::Double  timeShift 
)
void casa::MsAverager::reset ( casacore::MS ,
OutputMode  = MsAverager::TableMS 
)
void casa::MsAverager::setAverager ( const casacore::Matrix< casacore::Int > &  chanList,
const casacore::Matrix< casacore::Int > &  baselines,
casacore::Double  aveTime,
casacore::Int  aveChan,
const casacore::String column = "DATA",
const casacore::String aveMode = "VECTOR",
const casacore::Bool aveFlag = false,
const casacore::Bool aveScan = false,
const casacore::Bool aveBline = false,
const casacore::Bool aveArray = false,
const casacore::Bool aveVelo = false,
const casacore::String restfreq = "",
const casacore::String frame = "",
const casacore::String doppler = "" 
)

average engine and its status

void casa::MsAverager::showAveMap ( casacore::Matrix< casacore::Int > &  rmap,
casacore::Matrix< casacore::Int > &  cmap 
)
void casa::MsAverager::showColumnNames ( )
void casa::MsAverager::showMsRow ( casacore::MSMainColumns msc,
casacore::Int  row 
)
void casa::MsAverager::showVisRow ( casacore::Cube< casacore::Complex > &  vc,
casacore::Int  row 
)

Member Data Documentation

casacore::MS casa::MsAverager::aMS
private

casacore::MSDerivedValues *msdv;

averaged, store as MS

Definition at line 178 of file MsAverager.h.

casacore::Int casa::MsAverager::aveChan
private

Definition at line 205 of file MsAverager.h.

casacore::Matrix<casacore::Int> casa::MsAverager::aveChanMap
private

map between averaged and original

Definition at line 198 of file MsAverager.h.

casacore::Bool casa::MsAverager::aveFlag
private

Definition at line 206 of file MsAverager.h.

std::list<VisBuffer*> casa::MsAverager::aveList
private

Definition at line 185 of file MsAverager.h.

casacore::String casa::MsAverager::aveMode
private

averaging requirements

Definition at line 203 of file MsAverager.h.

casacore::Bool casa::MsAverager::aveOK
private

Definition at line 226 of file MsAverager.h.

Referenced by ok().

casacore::Matrix<casacore::Int> casa::MsAverager::aveRowMap
private

casacore::Matrix<casacore::Double> aveTimeMap;

Definition at line 200 of file MsAverager.h.

casacore::Double casa::MsAverager::aveTime
private

Definition at line 204 of file MsAverager.h.

casacore::Bool casa::MsAverager::aveVel
private

Definition at line 211 of file MsAverager.h.

casacore::Matrix<casacore::Int> casa::MsAverager::baselines
private

Definition at line 213 of file MsAverager.h.

casacore::Matrix<casacore::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 casacore::String casa::MsAverager::clname
staticprivate

utility

Definition at line 229 of file MsAverager.h.

casacore::String casa::MsAverager::column
private

averaging inputs, ideally, calculate only needed column

Definition at line 188 of file MsAverager.h.

casacore::Bool casa::MsAverager::crossArrays
private

Definition at line 209 of file MsAverager.h.

casacore::Bool casa::MsAverager::crossBlines
private

Definition at line 208 of file MsAverager.h.

casacore::Bool casa::MsAverager::crossScans
private

Definition at line 207 of file MsAverager.h.

casacore::Bool casa::MsAverager::crossSpws
private

Definition at line 210 of file MsAverager.h.

const casacore::String casa::MsAverager::DataColumn[4]
static

Definition at line 164 of file MsAverager.h.

casacore::String casa::MsAverager::doppler
private

Definition at line 224 of file MsAverager.h.

casacore::String casa::MsAverager::frame
private

Definition at line 223 of file MsAverager.h.

casacore::MSMainColumns* casa::MsAverager::msc
private

Definition at line 180 of file MsAverager.h.

casacore::String casa::MsAverager::msName
private

Definition at line 174 of file MsAverager.h.

casacore::Int casa::MsAverager::msRow
private

Definition at line 179 of file MsAverager.h.

casacore::Int casa::MsAverager::nAntenna
private

Definition at line 220 of file MsAverager.h.

Referenced by nAnt().

casacore::Int casa::MsAverager::nAveChan
private

size of the averaged

Definition at line 216 of file MsAverager.h.

Referenced by nchan().

casacore::Int casa::MsAverager::nAvePol
private

Definition at line 219 of file MsAverager.h.

Referenced by npol().

casacore::Int casa::MsAverager::nAveRow
private

Definition at line 218 of file MsAverager.h.

casacore::Int casa::MsAverager::nAveTime
private

Definition at line 217 of file MsAverager.h.

int casa::MsAverager::outputMode
private

SLog *log;.

Definition at line 232 of file MsAverager.h.

Referenced by outputFormat().

VisBuffer* casa::MsAverager::pAveBuff
private

casacore::MSColumns *msc;

averaged, store as VBs

Definition at line 184 of file MsAverager.h.

casacore::MS* casa::MsAverager::pMS
private

Definition at line 172 of file MsAverager.h.

casacore::String casa::MsAverager::restfreq
private

Definition at line 222 of file MsAverager.h.

casacore::Bool casa::MsAverager::sorryVel
private

Definition at line 212 of file MsAverager.h.

casacore::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.


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