4 #ifndef DP3_STEPS_CLIPPER_H_
5 #define DP3_STEPS_CLIPPER_H_
31 return kFlagsField | filter_step_->getRequiredFields() |
32 predict_step_->getRequiredFields();
38 bool process(std::unique_ptr<base::DPBuffer>)
override;
47 void show(std::ostream&)
const override;
50 void showTimings(std::ostream&,
double duration)
const override;
60 size_t frequency_step_;
61 bool flag_all_correlations_;
63 std::shared_ptr<Step> filter_step_;
64 std::shared_ptr<Step> predict_step_;
65 std::shared_ptr<ResultStep> result_step_;
66 std::unique_ptr<dp3::base::DPBuffer> predict_buffer_;
DP3 step class to predict visibilities from a source model.
DP3 step to filter out baselines and channels.
DP3 step class to predict visibilities from a source model.
DP3 step class to flag data on channel, baseline, or time.
Class to hold code for virtual base class for Flaggers in DP3.
xt::xtensor< bool, 3 > FlagsType
Definition: DPBuffer.h:97
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 for clipping bright sources from the data This class is a Step class that predicts visibilit...
Definition: Clipper.h:24
bool process(std::unique_ptr< base::DPBuffer >) override
Process the data. The step forwards the data to its next step.
void updateInfo(const base::DPInfo &) override
Update the general info.
common::Fields getProvidedFields() const override
Definition: Clipper.h:35
void show(std::ostream &) const override
Show the step parameters.
Clipper(const common::ParameterSet &, const std::string &prefix)
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: Clipper.h:30
void finish() override
Finish the processing of this step and subsequent steps.
void SetPredict(std::shared_ptr< Step > substep)
Set the Predict substep and connect it to a ResultStep.
void showTimings(std::ostream &, double duration) const override
Show the timings.
Abstract base class for a DP3 step.
Definition: Step.h:52
static constexpr dp3::common::Fields kFlagsField
Definition: Step.h:62
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53