32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Logging/LogIO.h>
35 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/Arrays/Vector.h>
37 #include <casacore/casa/Containers/Record.h>
38 #include <casacore/ms/MSSel/MSSelector.h>
164 const Int precAmpl=3,
const int precPhase=1,
165 const Int precWeight=0 );
170 const String& datacolumn=
"",
174 const String& timerange=
"",
175 const String& correlation=
"",
179 const String& observation=
"",
182 const bool showflags=
False,
183 const String& msSelect=
"",
184 const long pagerows=50,
185 const String& listfile=
"");
192 const String& baseline=
"",
194 const String& chanmode=
"none",
200 const String& correlation=
"",
202 const String& observation=
"",
203 const String& msSelect=
"");
Bool multiSpw_p
True if listing multiple spws.
uInt oTime_p
Order of magnitude control (digits to left of decimal, including sign)
Vector< String > pols_p
SpW/Pol info from subtables.
void listColumnHeader(ostream &myout)
Column header line for pagination of output.
const String dashline_p
A formatting string for convenience.
Bool multiChan_p
True if listing multiple channels.
void listData(const int pageRows=50, const String listfile="")
Most of the heavy lifting is in here.
MSLister(MSLister &other)
Copy constructor, this will initialise the MSLister's MS with other's MS.
LogIO logStream_p
Output stream.
Bool setNewOS(LogIO &os)
Change or set the OS this MSLister uses.
Vector< String > items_p
for assigning desired columns from the ms
Vector< Int > spwins_p
SpWId map from DDIs:
void setFormat(const uInt ndec=2)
Format for output, ie data display precision.
Matrix< Int > chanList_p
List of channels.
Bool setMS(MeasurementSet &ms)
Change or set the MS this MSLister refers to, and reinitialise the MSLister object.
void setPage(const uInt width=120, const uInt height=20)
Page size for various formats, output devices (default for landscape printing).
MSLister & operator=(MSLister &other)
Assignment, this will initialise the MSLister's MS with other's MS.
MSLister()
Null constructor.
void getRanges(const MeasurementSet &ms)
Get the ranges of a fixed set of MS key attributes.
MSSelector mss_p
The MSSelector object used in list() etc.
void selectvis(const String &timerange="", const String &spw="", const String &scan="", const String &field="", const String &baseline="", const String &uvrange="", const String &chanmode="none", const Int &nchan=1, const Int &start=0, const Int &step=1, const MRadialVelocity &mStart=MRadialVelocity(), const MRadialVelocity &mStep=MRadialVelocity(), const String &correlation="", const String &array="", const String &observation="", const String &msSelect="")
Set uv-data selection via MSSelection.
MSLister(const MeasurementSet &ms, LogIO &os)
Construct from a MeasurementSet (set pointer), set formatting string, and initialise listing with os.
Record dataRecords_p
The conversion of the above to a regular Record object.
Int precTime_p
Precision control (digits to right of decimal point) (precTime_p includes hhmmss, so 7 yields hh:mm:s...
void listHeader()
A preamble of abbreviated MSSummary information.
void clearFlags()
Clear the formatting flags.
uInt wTime_p
Field width variables.
uInt npols_p
Pol counters.
Vector< Int > indexPols_p
Polarization indexing variables; for polarization (correlation) selection.
Vector< String > dataColSel
Data selections data --> "amplitude", "phase" corrected --> "corrected_amplitude",...
void setPrecision(const Int precTime=1, const Int precUVDist=0, const Int precAmpl=3, const int precPhase=1, const Int precWeight=0)
User choices for list precision (sensible defaults): (time precision for user interface is fraction o...
Int pageWidth_p
Page params.
Bool doFld_p
Bools for column showing and to identify FLOAT_DATA column of single dish.
MeasurementSet * pMSSel_p
Record ranges_p
The Record object containing the MSSelector ranges.
void list(const String &options="", const String &datacolumn="", const String &field="", const String &spw="", const String &antenna="", const String &timerange="", const String &correlation="", const String &scan="", const String &feed="", const String &array="", const String &observation="", const String &uvrange="", const String &average="", const bool showflags=False, const String &msSelect="", const long pagerows=50, const String &listfile="")
List the visibilities, with optional data selection and output specification.
Int columnWidth(const Vector< String > antNames)
Calculate column width for a Vector<String>
MeasurementSet * pMS_p
Pointer to the MS.
void _polarizationSetup(const uInt selPolID)
Setup class polarization information for specified MS.
void polarizationParse(String correlation)
Parse the correlation parameter value; fill indexPols_p to output selected polarizations.
void initList()
Initialise the listing.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
bool Bool
Define the standard types used by Casacore.