41 #ifndef MSVIS_PARTITION_H
49 #define MSVIS_PARTITION_H
115 antennaids, antennaSel);
casacore::Double timeBin_p
casacore::Bool putDataColumn(casacore::MSColumns &msc, casacore::ArrayColumn< casacore::Complex > &data, const casacore::MS::PredefinedColumns datacol, const casacore::Bool writeToDataCol=false)
casacore::Vector< casacore::Int > fieldid_p
casacore::Bool makePartition(casacore::String &outname, casacore::String &whichDataCol, const casacore::Vector< casacore::Int > &tileShape=casacore::Vector< casacore::Int >(1, 0), const casacore::String &combine="")
void selectSource(casacore::Vector<casacore::String> sourceid);
virtual casacore::MeasurementSet * makeScratchPartition(const casacore::Vector< casacore::MS::PredefinedColumns > &whichDataCols, const casacore::Bool forceInMemory=false)
Method to make a scratch partition and even in memory if posssible Useful if temporary subselection/a...
casacore::Bool selectSpw(const casacore::String &spwstr)
Select spw and channels for each spw.
casacore::Vector< casacore::Int > antennaId_p
casacore::Bool setmsselect(const casacore::String &spw="", const casacore::String &field="", const casacore::String &baseline="", const casacore::String &scan="", const casacore::String &uvrange="", const casacore::String &taql="", const casacore::String &subarray="", const casacore::String &intent="", const casacore::String &obs="")
select casacore::Time and time averaging or regridding void selectTime();
std::complex< Float > Complex
casacore::String intentString_p
casacore::Matrix< casacore::Double > selTimeRanges_p
static casacore::Bool pickAntennas(casacore::Vector< casacore::Int > &selected_antennaids, casacore::Vector< casacore::String > &selected_antenna_strs, const casacore::Vector< casacore::Int > &antennaids, const casacore::Vector< casacore::String > &antennaSel)
casacore::String uvrangeString_p
casacore::String timeRange_p
casacore::Bool selectSource(const casacore::Vector< casacore::Int > &fieldid)
Select source or field.
PredefinedColumns
The Main table colums with predefined meaning.
casacore::Bool getDataColumn(casacore::ArrayColumn< casacore::Complex > &data, const casacore::MS::PredefinedColumns colName)
*** Private member functions ***
casacore::MeasurementSet msOut_p
are casacore::Int instead of uInt.)
casacore::MSMainColumns * msc_p
casacore::String obsString_p
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
void selectArray(const casacore::String &subarray)
Select array IDs to use.
casacore::String corrString_p
casacore::MeasurementSet mssel_p
casacore::Int maxnchan_p
scan #, observation, and/or state ID? Must be lowercase at all times.
Partition makes a subset of an existing casacore::MS without remapping any indices or resizing any su...
casacore::String taqlString_p
void selectTime(casacore::Double timeBin=-1.0, casacore::String timerng="")
select time parameters
casacore::Bool fillMainTable(const casacore::Vector< casacore::MS::PredefinedColumns > &colNames)
casacore::ROMSColumns * mscIn_p
static casacore::MeasurementSet * setupMS(const casacore::String &msname, const casacore::MeasurementSet &inms, const casacore::Int nchan, const casacore::Int npol, const casacore::String &telescop, const casacore::Vector< casacore::MS::PredefinedColumns > &colNamesTok, const casacore::Int obstype=0)
This sets up a default new ms Declared static as it can be called directly outside of Partition...
casacore::String combine_p
casacore::String scanString_p
A class to provide easy read-only access to MeasurementSet columns.
casacore::Bool makeSelection()
method that returns the selected ms (?! - but it's Boolean - RR)
casacore::MeasurementSet ms_p
*** Member variables ***
bool Bool
Define the standard types used by Casacore.
casacore::Bool doTimeAver(const casacore::Vector< casacore::MS::PredefinedColumns > &dataColNames)
Read the input, time average it to timeBin_p, and write the output.
Read and write access to an array table column with arbitrary data type.
casacore::Vector< casacore::Int > arrayId_p
void selectAntenna(casacore::Vector< casacore::Int > &antennaids, casacore::Vector< casacore::String > &antennaSel)
Select Antennas to split out.
uInt nrow() const
Get the number of rows.
casacore::Bool copyDataFlagsWtSp(const casacore::Vector< casacore::MS::PredefinedColumns > &colNames, const casacore::Bool writeToDataCol)
This method uses VisIter for efficient copy mode data transfer.
casacore::Double n_bytes()
Used in a couple of places to estimate how much memory to grab.
casacore::String arrayExpr_p
static void getDataColMap(casacore::MSMainColumns *msc, casacore::ArrayColumn< casacore::Complex > *mapper, casacore::uInt ntok, const casacore::Vector< casacore::MS::PredefinedColumns > &colEnums)
Fills mapper[ntok] with a map from dataColumn indices to ArrayColumns in the output.
A Table intended to hold astronomical data (a set of Measurements).
casacore::Vector< casacore::Int > spw_p
Partition(casacore::String &theMS, casacore::Table::TableOption option=casacore::Table::Old)
casacore::Bool fillAccessoryMainCols()
casacore::Bool writeDiffSpwShape(const casacore::Vector<casacore::MS::PredefinedColumns>& colNames); ...
A class for easy read-write access to MeasurementSet main table columns.
A class to provide easy read-write access to MeasurementSet columns.
String: the storage and methods of handling collections of characters.
void setMS(casacore::MeasurementSet &ms)
Change or Set the casacore::MS this casacore::MSSelector refers to.
casacore::Vector< casacore::String > antennaSelStr_p
casacore::Bool fillAllTables(const casacore::Vector< casacore::MS::PredefinedColumns > &colNames)
(Sub)table fillers.
void verifyColumns(const casacore::MeasurementSet &ms, const casacore::Vector< casacore::MS::PredefinedColumns > &colNames)
casacore::Bool antennaSel_p
TableOption
Define the possible options how a table can be opened.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.