28 #ifndef MS_MSSELECTIONTOOLS_H
29 #define MS_MSSELECTIONTOOLS_H
40 Vector<Int>
set_union(
const Vector<Int>& v1,
const Vector<Int>& v2);
44 MeasurementSet& selectedMS,
45 const String& outMSName=
"",
46 const String& timeExpr=
"",
47 const String& antennaExpr=
"",
48 const String& fieldExpr=
"",
49 const String& spwExpr=
"",
50 const String& uvDistExpr=
"",
51 const String& taQLExpr=
"",
52 const String& polnExpr=
"",
53 const String& scanExpr=
"",
54 const String& arrayExpr=
"",
55 const String& stateExpr=
"",
56 const String& obsExpr=
"",
62 MeasurementSet& selectedMS,
63 const String& outMSName=
"",
64 const String& timeExpr=
"",
65 const String& antennaExpr=
"",
66 const String& fieldExpr=
"",
67 const String& spwExpr=
"",
68 const String& uvDistExpr=
"",
69 const String& taQLExpr=
"",
70 const String& polnExpr=
"",
71 const String& scanExpr=
"",
72 const String& arrayExpr=
"",
73 const String& stateExpr=
"",
74 const String& obsExpr=
"",
75 const String& feedExpr=
"",
82 MeasurementSet& selectedMS,
83 Vector<Vector<Slice> >& chanSlices,
84 Vector<Vector<Slice> >& corrSlices,
85 const String& outMSName=
"",
86 const String& timeExpr=
"",
87 const String& antennaExpr=
"",
88 const String& fieldExpr=
"",
89 const String& spwExpr=
"",
90 const String& uvDistExpr=
"",
91 const String& taQLExpr=
"",
92 const String& polnExpr=
"",
93 const String& scanExpr=
"",
94 const String& arrayExpr=
"",
95 const String& stateExpr=
"",
96 const String& obsExpr=
"",
97 const Int defaultChanStep=1,
103 MeasurementSet& selectedMS,
104 Vector<Vector<Slice> >& chanSlices,
105 Vector<Vector<Slice> >& corrSlices,
106 const String& outMSName=
"",
107 const String& timeExpr=
"",
108 const String& antennaExpr=
"",
109 const String& fieldExpr=
"",
110 const String& spwExpr=
"",
111 const String& uvDistExpr=
"",
112 const String& taQLExpr=
"",
113 const String& polnExpr=
"",
114 const String& scanExpr=
"",
115 const String& arrayExpr=
"",
116 const String& stateExpr=
"",
117 const String& obsExpr=
"",
118 const String& feedExpr=
"",
119 const Int defaultChanStep=1,
120 MSSelection *mss=NULL
124 TableExprNode& fullTEN,
const String& outName);
129 int tokenize(
const String& str,
const String& sep, Vector<String>& tokens,
Bool upCase=
False);
130 Vector<String> &
split(
const String &s,
char delim, Vector<String> &elems);
Bool mssSetData2(const MeasurementSet &ms, MeasurementSet &selectedMS, const String &outMSName="", const String &timeExpr="", const String &antennaExpr="", const String &fieldExpr="", const String &spwExpr="", const String &uvDistExpr="", const String &taQLExpr="", const String &polnExpr="", const String &scanExpr="", const String &arrayExpr="", const String &stateExpr="", const String &obsExpr="", const String &feedExpr="", MSSelection *mss=NULL)
Added feedExpr.
Bool getSelectedTable(Table &selectedTab, const Table &baseTab, TableExprNode &fullTEN, const String &outName)
Vector< Int > set_union(const Vector< Int > &v1, const Vector< Int > &v2)
Bool mssSetData(const MeasurementSet &ms, MeasurementSet &selectedMS, const String &outMSName="", const String &timeExpr="", const String &antennaExpr="", const String &fieldExpr="", const String &spwExpr="", const String &uvDistExpr="", const String &taQLExpr="", const String &polnExpr="", const String &scanExpr="", const String &arrayExpr="", const String &stateExpr="", const String &obsExpr="", MSSelection *mss=NULL)
Collective selection returning a selected MS.
Vector< Int > set_intersection(const Vector< Int > &v1, const Vector< Int > &v2)
Get the intersection or union of IDs (such as FieldId).
String stripWhite(const String &str, Bool onlyends=True)
int tokenize(const String &str, const String &sep, Vector< String > &tokens, Bool upCase=False)
Vector< String > & split(const String &s, char delim, Vector< String > &elems)
Record mssSelectedIndices(MSSelection &mss, const MeasurementSet *ms)
bool Bool
Define the standard types used by Casacore.