SubMS.h

Classes

SubMS -- SubMS provides functionalities to make a subset of an existing MS (full description)

class SubMS

Interface

Public Members
SubMS(String& theMS)
SubMS(MeasurementSet& ms)
~SubMS()
void setMS(MeasurementSet& ms)
void selectSpw(Vector<Int> spw, Vector<Int> nchan, Vector<Int> start, Vector<Int> step, Bool averchan=True)
void selectSource(Vector<Int> fieldid)
void selectAntenna(Vector<Int>& antennaids, Vector<String>& antennaSel)
void selectTime(Double timeBin=-1.0, String timerng="")
Bool makeSubMS(String& submsname, String& whichDataCol)
MeasurementSet* makeScratchSubMS(String& whichDataCol, Bool forceInMemory=False)
static MeasurementSet* setupMS(String msname, Int nchan, Int npol, String telescop, Int obstype=0)
Private Members
Bool makeSelection()
Bool fillAllTables(const String& colname)
Bool fillDDTables()
Bool fillFieldTable()
Bool fillMainTable(const String& which)
Bool fillAverMainTable(const String& which)
Bool copyAntenna()
Bool copyFeed()
Bool copySource()
Bool copyObservation()
Bool copyPointing()
Bool writeDiffSpwShape(String& columnName)
Bool writeSimilarSpwShape(String& columnName)
Int numOfBaselines(Vector<Int>& ant1, Vector<Int>& ant2, Bool includeAutoCorr=False)
Int numOfTimeBins(const Double& timeBin)
Bool fillAverAntTime(Vector<Int>& ant1, Vector<Int>& ant2, const Double& timeBin, const Int& numOfTimeBins)
Bool fillTimeAverData(Vector<Int>& ant1, Vector<Int>& ant2, const Double& timeBin, const Int& numbas, const String& ColumnName)
void checkSpwShape()

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

SubMS ...from the SUBset of an MS

Synopsis

Member Description

SubMS(String& theMS)

SubMS(MeasurementSet& ms)

construct from an MS

~SubMS()

void setMS(MeasurementSet& ms)

Change or Set the MS this MSSelector refers to.

void selectSpw(Vector<Int> spw, Vector<Int> nchan, Vector<Int> start, Vector<Int> step, Bool averchan=True)

select spw and channels for each spw...

void selectSource(Vector<Int> fieldid)

select Time and time averaging or regridding void selectTime();

Select source or field

void selectAntenna(Vector<Int>& antennaids, Vector<String>& antennaSel)

Select Antennas to split out

void selectTime(Double timeBin=-1.0, String timerng="")

select time parameters

Bool makeSubMS(String& submsname, String& whichDataCol)

void selectSource(Vector sourceid);

Method to set if a phase Center rotation is needed void setPhaseCenter(Int fieldid, MDirection& newPhaseCenter);

Method to make the subMS

MeasurementSet* makeScratchSubMS(String& whichDataCol, Bool forceInMemory=False)

Method to make a scratch subMS and even in memory if posssible Useful if temporary subselection/averaging is necessary It'll be in memory if the basic output ms is less than half of memory reported by HostInfo unless forced to by user...

static MeasurementSet* setupMS(String msname, Int nchan, Int npol, String telescop, Int obstype=0)

This setup a default new ms Can be called directly as its not dependent on any private variable

Bool makeSelection()

method that returns the selected ms

Bool fillAllTables(const String& colname)

Bool fillDDTables()

Bool fillFieldTable()

Bool fillMainTable(const String& which)

Bool fillAverMainTable(const String& which)

Bool copyAntenna()

Bool copyFeed()

Bool copySource()

Bool copyObservation()

Bool copyPointing()

Bool writeDiffSpwShape(String& columnName)

Bool writeSimilarSpwShape(String& columnName)

Int numOfBaselines(Vector<Int>& ant1, Vector<Int>& ant2, Bool includeAutoCorr=False)

return the number of unique antennas selected

Int numOfTimeBins(const Double& timeBin)

Number of time bins to average into from selected data

Bool fillAverAntTime(Vector<Int>& ant1, Vector<Int>& ant2, const Double& timeBin, const Int& numOfTimeBins)

Bool fillTimeAverData(Vector<Int>& ant1, Vector<Int>& ant2, const Double& timeBin, const Int& numbas, const String& ColumnName)

void checkSpwShape()