9 #ifndef DP3_STEPS_FILTER_H_
10 #define DP3_STEPS_FILTER_H_
112 bool process(std::unique_ptr<base::DPBuffer> buffer)
override;
121 void show(std::ostream&)
const override;
128 void addToMS(
const std::string& msName)
override;
134 const std::vector<unsigned int>&
getIndicesBL()
const {
return itsSelBL; }
139 casacore::Vector<int> createIdMap(
141 const casacore::Vector<common::rownr_t>& removedIds)
const;
147 casacore::Vector<common::rownr_t> renumberSubTable(
148 const casacore::Table& ms,
const casacore::String& name,
149 const casacore::String& colName,
150 const casacore::Vector<common::rownr_t>& removedAnt,
154 casacore::String itsStartChanStr;
155 casacore::String itsNrChanStr;
158 unsigned int itsStartChan;
159 std::vector<unsigned int> itsSelBL;
Class to handle the baseline selection.
Buffer holding the data of a timeslot/band.
Class to hold code for virtual base class for Flaggers in DP3.
Class containing a few static functions to parse a baseline selection string.
Definition: BaselineSelection.h:47
General info about DP3 data processing attributes like averaging.
Definition: DPInfo.h:35
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
DP3 step to filter out baselines and channels.
Definition: Filter.h:92
Filter()
Default constructor.
bool hasSelection() const
Does the filter step has an actual selection?
Definition: Filter.h:131
Filter(const base::BaselineSelection &)
Construct the object for the given MS and baseline selection.
void finish() override
Finish the processing of this step and subsequent steps.
common::Fields getRequiredFields() const override
Get the fields required by the current step.
void addToMS(const std::string &msName) override
void updateInfo(const base::DPInfo &) override
Update the general info.
Filter(const common::ParameterSet &, const std::string &prefix)
common::Fields getProvidedFields() const override
const std::vector< unsigned int > & getIndicesBL() const
Get the indices of the selected baselines.
Definition: Filter.h:134
void show(std::ostream &) const override
Show the step parameters.
bool process(std::unique_ptr< base::DPBuffer > buffer) override
void showTimings(std::ostream &, double duration) const override
Show the timings.
Abstract base class for a DP3 step.
Definition: Step.h:52
unsigned int rownr_t
Definition: Types.h:19
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53