casacore
Loading...
Searching...
No Matches
MSSelectionTools.h
Go to the documentation of this file.
1//# MSSelectionTools.h: Classes to hold results from antenna grammar parser
2//# Copyright (C) 1994,1995,1997,1998,1999,2000,2001,2003
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef MS_MSSELECTIONTOOLS_H
27#define MS_MSSELECTIONTOOLS_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Arrays/Vector.h>
32#include <casacore/ms/MSSel/MSSelection.h>
33
34namespace casacore { //# NAMESPACE CASACORE - BEGIN
35
36 // Get the intersection or union of IDs (such as FieldId).
39
40 // Collective selection returning a selected MS.
42 MeasurementSet& selectedMS,
43 const String& outMSName="",
44 const String& timeExpr="",
45 const String& antennaExpr="",
46 const String& fieldExpr="",
47 const String& spwExpr="",
48 const String& uvDistExpr="",
49 const String& taQLExpr="",
50 const String& polnExpr="",
51 const String& scanExpr="",
52 const String& arrayExpr="",
53 const String& stateExpr="",
54 const String& obsExpr="",
55 MSSelection *mss=NULL
56 );
57
58 // Added feedExpr
60 MeasurementSet& selectedMS,
61 const String& outMSName="",
62 const String& timeExpr="",
63 const String& antennaExpr="",
64 const String& fieldExpr="",
65 const String& spwExpr="",
66 const String& uvDistExpr="",
67 const String& taQLExpr="",
68 const String& polnExpr="",
69 const String& scanExpr="",
70 const String& arrayExpr="",
71 const String& stateExpr="",
72 const String& obsExpr="",
73 const String& feedExpr="",
74 MSSelection *mss=NULL
75 );
76
77
78 // Collective selection also returning in-row (corr/chan) slices
80 MeasurementSet& selectedMS,
81 Vector<Vector<Slice> >& chanSlices,
82 Vector<Vector<Slice> >& corrSlices,
83 const String& outMSName="",
84 const String& timeExpr="",
85 const String& antennaExpr="",
86 const String& fieldExpr="",
87 const String& spwExpr="",
88 const String& uvDistExpr="",
89 const String& taQLExpr="",
90 const String& polnExpr="",
91 const String& scanExpr="",
92 const String& arrayExpr="",
93 const String& stateExpr="",
94 const String& obsExpr="",
95 const Int defaultChanStep=1,
96 MSSelection *mss=NULL
97 );
98
99 // Added feedExpr
101 MeasurementSet& selectedMS,
102 Vector<Vector<Slice> >& chanSlices,
103 Vector<Vector<Slice> >& corrSlices,
104 const String& outMSName="",
105 const String& timeExpr="",
106 const String& antennaExpr="",
107 const String& fieldExpr="",
108 const String& spwExpr="",
109 const String& uvDistExpr="",
110 const String& taQLExpr="",
111 const String& polnExpr="",
112 const String& scanExpr="",
113 const String& arrayExpr="",
114 const String& stateExpr="",
115 const String& obsExpr="",
116 const String& feedExpr="",
117 const Int defaultChanStep=1,
118 MSSelection *mss=NULL
119 );
120
121 Bool getSelectedTable(Table& selectedTab, const Table& baseTab,
122 TableExprNode& fullTEN, const String& outName);
123
125
126 String stripWhite(const String& str, Bool onlyends=True);
127 int tokenize(const String& str, const String& sep, Vector<String>& tokens,Bool upCase=False);
128 Vector<String> &split(const String &s, char delim, Vector<String> &elems);
129}
130
131#endif
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
const Bool False
Definition aipstype.h:42
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.
int tokenize(const String &str, const String &sep, Vector< String > &tokens, Bool upCase=False)
Bool getSelectedTable(Table &selectedTab, const Table &baseTab, TableExprNode &fullTEN, const String &outName)
Vector< String > & split(const String &s, char delim, Vector< String > &elems)
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)
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.
int Int
Definition aipstype.h:48
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
Vector< Int > set_union(const Vector< Int > &v1, const Vector< Int > &v2)
const Bool True
Definition aipstype.h:41
Record mssSelectedIndices(MSSelection &mss, const MeasurementSet *ms)