construct from an MS
Change or Set the MS this MSSelector refers to.
select spw and channels for each spw...
select Time and time averaging or regridding
void selectTime();
Select source or field
Select Antennas to split out
select time parameters
void selectSource(Vector
Method to set if a phase Center rotation is needed
void setPhaseCenter(Int fieldid, MDirection& newPhaseCenter);
Method to make the subMS
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...
This setup a default new ms
Can be called directly as its not dependent on any private variable
Review Status
Prerequisite
Etymology
SubMS ...from the SUBset of an MS
Synopsis
Member Description
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)
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()