32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
35 #include <casacore/ms/MSSel/MSSelectionKeywords.h>
38 template <
class T>
class ArrayColumn;
39 template <
class T>
class ScalarColumn;
void scalarRange(Record &out, const String &item, const ScalarColumn< Int > &id, Bool oneBased)
get the range of a ScalarColumn<Int>, correct for 1-based indexing if oneBased is True,...
@ UNCHECKED
spectral window selection and shapes have not been checked
@ ALL
multiple spectral windows with same shape
@ UNSELECTED
multiple spectral windows with varying shapes
void minMax(Matrix< Float > &minmax, const Vector< Bool > &funcSel, const ArrayColumn< Complex > &data1, const ArrayColumn< Complex > &data2, const ArrayColumn< Bool > &flag, Int dataType, Bool useFlags)
get the minimum and maximum of a Complex data column, after application of some function to convert t...
MSRange(const MSSelector &msSel)
construct from an MSSelector, if this constructor is used, the data will be channel selected and pola...
Vector< Int > ifrNumbers(const ScalarColumn< Int > &ant1, const ScalarColumn< Int > &ant2)
Get the range of interferometer numbers given the antenna1 and antenna2 columns.
void minMax(Float &mini, Float &maxi, const ArrayColumn< Float > &data, const ArrayColumn< Bool > &flag, Bool useFlags)
get the minimum and maximum of a Float data column This function reads the data in blocks of size blo...
MSRange()
Default constructor, only useful to assign to.
Record range(const Vector< Int > &items, Bool useFlags=True, Bool OneBased=False)
Same as previous function, with Vector of MSS::Field keys instead of Strings.
MSRange(const MeasurementSet &ms)
Construct from an MS.
Record range(const Vector< String > &items, Bool useFlags=True, Bool OneBased=False)
Return the range of values for each of the items specified in the record.
Record range(MSS::Field item, Bool useFlags=True)
Similar to above, with a single enum, for convenience.
void setBlockSize(Int blockSize=10)
Set the block size (in Mbytes) to use when reading the data column.
MSRange & operator=(const MSRange &other)
Assignment.
Vector< Int > scalarRange(const ScalarColumn< Int > &id)
get the range of a ScalarColumn<Int>
Bool checkShapes()
check the data description selection (one or more with same shape, or varying shape)
MSRange(const MSRange &other)
Copy constructor.
Field
The fields in the MS for which selection and range operations are defined.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.