28 #if ! defined (MSVIS_ViFrequencySelection_H_121116_1101)
29 #define MSVIS_ViFrequencySelection_H_121116_1101
127 double endFrequency = 0,
double increment = 0)
154 void add (
casacore::Int spectralWindow,
double bottomFrequency,
double topFrequency);
171 class SpectralWindowChannels;
219 typedef std::vector<Element>
Elements;
237 size_t size ()
const;
253 void refineSelection (FrequencySelectionUsingChannels::Element & originalElement,
254 int firstRefiningChannel,
int lastRefiningChannel)
const;
310 #endif // ! defined (MSVIS_ViFrequencySelection_H_121116_1101)
double getEndFrequency() const
void refine(const FrequencySelectionUsingFrame &frequencySelection)
std::set< std::pair< casacore::Int, casacore::Int > > SelectedWindows
casacore::Int spectralWindow_p
virtual FrequencySelection * clone() const =0
A 1-D Specialization of the Array class.
void filterToSpectralWindow(casacore::Int spectralWindowId)
casacore::Int nChannels_p
Elements::const_iterator const_iterator
FrequencySelectionUsingFrame(casacore::MFrequency::Types frameOfReference)
casacore::Bool isSpectralWindowSelected(casacore::Int msIndex, casacore::Int spectralWindowId) const
void addCorrelationSlices(const casacore::Vector< casacore::Vector< casacore::Slice > > &slices)
casacore::Vector< casacore::Vector< casacore::Slice > > correlationSlices_p
casacore::String toString() const
casacore::Slice getSlice() const
void add(const FrequencySelection &selection)
SelectedWindows selectedWindows_p
FrequencySelections * clone() const
FrequencySelectionUsingChannels()
set< int > getSelectedWindows() const
const_iterator begin() const
void add (casacore::Int spectralWindow, double bottomFrequency, double topFrequency, double increment);
casacore::String toString() const
casacore::Int filterWindowId_p
virtual set< int > getSelectedWindows() const =0
Element(casacore::Int spectralWindow=-1, double beginFrequency=0, double endFrequency=0, double increment=0)
bool refinementNeeded() const
casacore::Vector< casacore::Slice > getCorrelationSlices(casacore::Int polarizationId) const
casacore::Int referenceFrame_p
std::vector< FrequencySelection * > Selections
const_iterator end() const
casacore::Int getFrameOfReference() const
void filterByWindow(casacore::Int windowId=-1) const
FrequencySelection * clone() const
virtual casacore::Bool empty() const =0
const_iterator begin() const
casacore::Bool empty() const
static casacore::String frameName(casacore::Int referenceFrame)
std::vector< Element > Elements
define a (start,length,increment) along an axis
void refineSelection(FrequencySelectionUsingChannels::Element &originalElement, int firstRefiningChannel, int lastRefiningChannel) const
std::pair<int, int> getChannelRange (const SpectralWindowChannels & spwChannels, double beginFrequenc...
std::unique_ptr< FrequencySelectionUsingFrame > refinements_p
virtual ~FrequencySelection()
Elements::const_iterator const_iterator
MSSelection: Class to represent a selection on an MS.
const FrequencySelectionUsingChannels defaultSelection_p
bool Bool
Define the standard types used by Casacore.
casacore::Int filterWindow() const
FrequencySelection(casacore::Int referenceFrame)
casacore::Bool empty() const
std::pair< int, int > getChannelRange(const casacore::MeasurementSet *ms) const
void add(casacore::Int spectralWindow, casacore::Int firstChannel, casacore::Int nChannels, casacore::Int increment=1)
A Table intended to hold astronomical data (a set of Measurements).
const_iterator end() const
virtual casacore::String toString() const =0
FrequencySelection * clone() const
casacore::Int getNChannels(casacore::Int spectralWindowId) const
casacore::Int filterWindow_p
void applyRefinement(std::function< casacore::Slice(int, double, double)>) const
void add(casacore::Int spectralWindow, double bottomFrequency, double topFrequency)
String: the storage and methods of handling collections of characters.
casacore::Int increment_p
int getSpectralWindow() const
casacore::Int firstChannel_p
double getBeginFrequency() const
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
casacore::Int size() const
std::map< int, std::pair< int, int > > getChannelRange(const casacore::MeasurementSet &ms) const
This will return a map where the key is the spw and the pair is the pair (nchan, start) for that spw...
std::vector< Element > Elements
casacore::Int getFrameOfReference() const
set< int > getSelectedWindows() const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.