44 #ifndef MSVIS_REWEIGHTER_H
53 #define MSVIS_REWEIGHTER_H
121 antennaids, antennaSel);
casacore::Bool selectSource(const casacore::Vector< casacore::Int > &fieldid)
Select source or field.
casacore::Vector< casacore::Int > fieldId_p
Reweighter(const casacore::String &theMS, const casacore::Bool dorms=false, const casacore::uInt minsamp=1)
casacore::Bool setmsselect(const casacore::String &fitspw="", const casacore::String &outspw="", const casacore::String &field="", const casacore::String &baseline="", const casacore::String &scan="", const casacore::String &subarray="", const casacore::String &correlation="", const casacore::String &intent="", const casacore::String &obs="")
select stuff using msselection syntax...time is left out call it separately with timebin Returns a su...
Reweighter reweights a selected part of an casacore::MS based on the properties of a (possibly differ...
casacore::MeasurementSet mssel_p
casacore::Vector< casacore::String > antennaSelStr_p
Uninitialized by ctors.
casacore::Vector< casacore::Int > fitStep_p
casacore::Matrix< casacore::Double > selTimeRanges_p
casacore::String obsString_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::Bool selectCorrelations(const casacore::String &corrstr)
Setup polarization selection (for now, only from available correlations - no casacore::Stokes transfo...
casacore::Bool reweight(casacore::String &colname, const casacore::String &combine)
Do the reweighting!
static casacore::Bool getCorrTypes(casacore::Vector< casacore::Int > &polIDs, casacore::Vector< casacore::Vector< casacore::Int > > &corrTypes, const casacore::MSColumns &msc)
void verifyColumns(const casacore::MeasurementSet& ms, const casacore::Vector<casacore::MS::Predefine...
casacore::String arrayExpr_p
casacore::Vector< casacore::Vector< casacore::Int > > corrTypes_p
casacore::Map from polID to corrTypes, filled in getCorrTypes().
casacore::Double timeBin_p
casacore::Bool shouldWatch(casacore::Bool &conflict, const casacore::String &col, const casacore::String &uncombinable="", const casacore::Bool verbose=true) const
Returns whether col is (not in combine_p) || in uncombinable.
casacore::MS::PredefinedColumns dataColStrToEnum(const casacore::String &col)
Defaults to DATA.
void setOutSpw(const casacore::String &outspw)
Set the selection string for output spws (not channels!).
PredefinedColumns
The Main table colums with predefined meaning.
casacore::Vector< casacore::Vector< casacore::Slice > > corrSlices_p
casacore::MeasurementSet ms_p
*** Member variables ***
casacore::Vector< casacore::Int > polIDs_p
casacore::Map from DDID to polID, filled in getCorrTypes().
casacore::Vector< casacore::Int > antennaId_p
void selectTime(casacore::Double timeBin=-1.0, casacore::String timerng="")
select time parameters
casacore::String scanString_p
casacore::String fitspw_p
scan #, observation, and/or state ID? Must be lowercase at all times.
void setFitSpw(const casacore::String &fitspw)
void selectSource(casacore::Vector<casacore::String> sourceid);
casacore::Bool makeSelection()
method that returns the selected ms (?! - but it's Boolean - RR)
const casacore::ArrayColumn< casacore::Complex > & right_column(const casacore::ROMSColumns *ms_p, const casacore::MS::PredefinedColumns datacol)
*** Private member functions ***
A class to provide easy read-only access to MeasurementSet columns.
MSSelection: Class to represent a selection on an MS.
bool Bool
Define the standard types used by Casacore.
casacore::Vector< casacore::Int > fitStart_p
casacore::Vector< casacore::Int > fitEnd_p
Read and write access to an array table column with arbitrary data type.
casacore::Bool antennaSel_p
casacore::String combine_p
casacore::String corrString_p
A Table intended to hold astronomical data (a set of Measurements).
std::set< casacore::Int > outspwset_p
casacore::MSColumns * msc_p
void selectAntenna(const casacore::Vector< casacore::Int > &antennaids, const casacore::Vector< casacore::String > &antennaSel)
casacore::Bool selectSpw(std::set< casacore::Int > &spwset, casacore::Vector< casacore::Int > &chanStartv, casacore::Vector< casacore::Int > &chanEndv, casacore::Vector< casacore::Int > &chanStepv, const casacore::String &spwstr)
Select spw and channels for each spw in spwstr.
casacore::String intentString_p
A class to provide easy read-write access to MeasurementSet columns.
String: the storage and methods of handling collections of characters.
casacore::Vector< casacore::Int > unionspw_p
casacore::Vector< casacore::Slice > corrSlice_p
casacore::String timeRange_p
std::set< casacore::Int > fitspwset_p
casacore::Bool setSortOrder(casacore::Block< casacore::Int > &sort, const casacore::String &uncombinable="", const casacore::Bool verbose=true) const
Sets sort to a casacore::Block of columns that a VisibilityIterator should sort by, according to combine_p.
casacore::Vector< casacore::Vector< casacore::Slice > > chanSlices_p
void selectArray(const casacore::String &subarray)
Select array IDs to use.
casacore::String outspw_p
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.