30 #if !defined MSAVERAGER_H
static const casacore::String DataColumn[4]
int outputMode
SLog *log;.
casacore::Int nAveChan
size of the averaged
casacore::Vector< SAS > spw
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
void initAveBuffer(casacore::Double bufTime, VisBuffer &p, casacore::Int nAnt, casacore::Int nChan)
void putAveBuffer(casacore::Double bufTime, casacore::Int bufField, casacore::Int bufScan, casacore::Int bufArray, VisBuffer &p, casacore::Int nTime)
casacore::Bool crossBlines
static casacore::Int baselineRow(const casacore::Int &nAnt, const casacore::Int &a, const casacore::Int &b)
casacore::Bool crossArrays
casacore::String column
averaging inputs, ideally, calculate only needed column
casacore::Matrix< casacore::Int > aveChanMap
map between averaged and original
void cleanup()
to be averaged
casacore::Matrix< casacore::Int > chanList
selected channels for each piece for spw expression each row contains [spwid, start, end, stride] may contains multiple rows of same spwid
void getMS(casacore::MS &ms)
std::list< VisBuffer * > aveList
casacore::MS aMS
casacore::MSDerivedValues *msdv;
casacore::Bool crossScans
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)
casacore::String restfreq
void getXY(casacore::Vector< casacore::Double > &x, casacore::Vector< casacore::Double > &y, casacore::Vector< casacore::Int > &f, casacore::Int pol)
void reset(casacore::MS *, OutputMode=MsAverager::TableMS)
MsAverager(casacore::MS *, OutputMode=MsAverager::TableMS)
bool Bool
Define the standard types used by Casacore.
casacore::Matrix< casacore::Int > aveRowMap
casacore::Matrix<casacore::Double> aveTimeMap;
void showVisRow(casacore::Cube< casacore::Complex > &vc, casacore::Int row)
A Table intended to hold astronomical data (a set of Measurements).
casacore::Bool isDataColumn(const casacore::String &colNmae)
void getMap(casacore::Matrix< casacore::Int > &rowMap, casacore::Matrix< casacore::Int > &chanMap)
casacore::Matrix< casacore::Int > baselines
casacore::Bool hasColumn(const casacore::String &colName)
casacore::Int outputFormat()
casacore::String aveMode
averaging requirements
VisBuffer * pAveBuff
casacore::MSColumns *msc;
A class for easy read-write access to MeasurementSet main table columns.
void showAveMap(casacore::Matrix< casacore::Int > &rmap, casacore::Matrix< casacore::Int > &cmap)
String: the storage and methods of handling collections of characters.
static const casacore::String clname
utility
VisBuffers encapsulate one chunk of visibility data for processing.
casacore::MSMainColumns * msc
void showMsRow(casacore::MSMainColumns *msc, casacore::Int row)