10 #ifndef DP3_STEPS_FLAG_TRANSFER_H_
11 #define DP3_STEPS_FLAG_TRANSFER_H_
13 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
14 #include <casacore/tables/Tables/TableIter.h>
46 const std::string& prefix);
49 return filter_step_->getRequiredFields();
54 bool process(std::unique_ptr<base::DPBuffer> buffer)
final;
60 void show(std::ostream&) const final;
66 void ReadSourceMsFlags();
70 std::
string source_ms_path_;
72 casacore::TableIterator ms_iterator_;
76 base::DPBuffer::FlagsType flags_;
79 std::
size_t timestep_counter_;
82 std::
size_t time_averaging_factor_;
85 double time_interval_;
88 std::vector<
double> source_channel_upper_edges_;
90 std::shared_ptr<
Step> filter_step_;
Buffer holding the data of a timeslot/band.
DP3 step to filter out baselines and channels.
Class to hold code for virtual base class for Flaggers in DP3.
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
DP3 step class to transfer flags from a lower to a MS with higher time/freq resolution.
Definition: FlagTransfer.h:41
void show(std::ostream &) const final
Show the step parameters.
common::Fields getProvidedFields() const final
Definition: FlagTransfer.h:52
void showTimings(std::ostream &, double duration) const final
FlagTransfer(const common::ParameterSet ¶meter_set, const std::string &prefix)
common::Fields getRequiredFields() const final
Get the fields required by the current step.
Definition: FlagTransfer.h:48
bool process(std::unique_ptr< base::DPBuffer > buffer) final
void finish() final
Finish the processing of this step and subsequent steps.
void updateInfo(const base::DPInfo &) final
This class defines a step in the DP3 pipeline that keeps the result to make it possible to get the re...
Definition: ResultStep.h:16
Abstract base class for a DP3 step.
Definition: Step.h:52
static constexpr dp3::common::Fields kFlagsField
Definition: Step.h:62
Definition: InputStep.h:21
BaseTimer< std::chrono::steady_clock > NSTimer
Definition: Timer.h:129
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53