29 #ifndef MS_MSSELECTOR_H
30 #define MS_MSSELECTOR_H
43 template <
class T>
class ArrayColumn;
194 Int ifrAxisGap=0,
Int inc=1,
246 const Slicer & rowSlicer)
const;
251 const Slicer & rowSlicer)
const;
261 const Slicer& rowSlicer)
const;
MSDerivedValues calculates values derived from a MS.
void getAveragedData(Array< Complex > &avData, const Array< Bool > &flag, const ArrayColumn< Complex > &col) const
average and convert data
Bool iterInit(const Vector< String > &columns, Double interval, Int maxRows=0, Bool addDefaultSortColumns=True)
Set up an iterator, iterating over the specified columns, with optional time interval and maximum num...
Bool iterEnd()
End the iteration (before reaching the last iteration) and set the selection back to the state before...
virtual void reset()
Overrides PlotTool::reset().
Main interface class to a read/write table.
Bool putData(const Record &items)
Put the data for the items provided.
Bool selectChannel(Int nChan, Int start, Int width, Int incr)
Set the mapping from input channels in the DATA column to output channels.
Record getData(const Vector< String > &items, Bool ifrAxis, Int ifrAxisGap=0, Int inc=1, Bool average=False, Bool oneBased=False)
Return the data for the items requested, all returned values will be arrays, the last dimension of th...
Bool selectPolarization(const Vector< String > &wantedPol)
Specify the output polarization.
Bool checkSelection()
check if the data description selection has been done & do default selection if not.
StokesConverter stokesConverter_p
Int nrow() const
Number of rows in selected table.
Bool select(const Record &items, Bool oneBased=False)
Select the MS based on the selections present in the input record.
Bool iterNext()
Step the iterator, sets the selection to the current table iteration.
void reorderFlagRow(Array< Bool > &flagRow)
reorder from 2d to 1d (removing ifr axis)
Bool iterOrigin()
(Re)Set the iterator to the first iteration, call this after iterInit.
Vector< String > polSelection_p
Table selectedTable() const
Return the selected table.
Matrix< Double > bandwidth_p
void putAveragedFlag(const Array< Bool > &avFlag, ArrayColumn< Bool > &col)
"unaverage" flag, distribute the flags back to the channels that went into the average ...
void setMS(MeasurementSet &ms)
Change or Set the MS this MSSelector refers to.
StokesConverter converts any set of polarizations into any other one.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Vector< Int > dataDescId() const
Return the data desc IDs selected.
void reorderWeight(Array< Float > &weight)
reorder from 2d to 1d (removing ifr axis)
Vector< Int > lastDataDescId_p
Bool selected() const
Return the selection status of the table.
define a (start,length,increment) along an axis
Vector< Int > ifrSelection_p
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void makeSlicer(Int start, Int nCorr) const
make the data slicer, pass in the first and the number of correlations to select
uInt nrow() const
Get the number of rows.
MSSelector & operator=(const MSSelector &other)
Assignment, this will initialize the MS with other's MS.
A Table intended to hold astronomical data (a set of Measurements).
Specify which elements to extract from an n-dimensional array.
Array< Bool > getAveragedFlag(Array< Bool > &avFlag, const ArrayColumn< Bool > &col) const
"average" flag, at present all output which has a flagged input is flagged
An iterator class for MeasurementSets.
Matrix< Double > chanFreq_p
void timeAverage(Array< Bool > &dataFlags, Array< Complex > &data, const Array< Bool > &flags, const Array< Float > &weights)
time average the input data, return new flags
String: the storage and methods of handling collections of characters.
MSSelector specifies selections on a MeasurementSet.
MSRange determines ranges of values in a MeasurementSet.
Vector< Int > dataDescId_p
Bool initSelection(const Vector< Int > &dataDescIds, Bool reset=False)
initialize the selection by specifying, optionally, the DATA_DESC_IDs.
Array< Float > getWeight(const ArrayColumn< Float > &wtCol, Bool sigma=False) const
get the weight, set sigma=True when retrieving sigma's
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.