8 #ifndef DP3_STEPS_BDAEXPANDER_H_
9 #define DP3_STEPS_BDAEXPANDER_H_
49 bool process(std::unique_ptr<base::BdaBuffer>)
override;
55 void show(std::ostream&)
const override;
57 void showTimings(std::ostream&,
double duration)
const override;
68 std::unique_ptr<dp3::base::DPBuffer>& buf_out,
69 int time_averaging_factor = 1);
71 struct RegularBufferElement {
72 RegularBufferElement(
size_t n_baselines,
unsigned int n_corr,
73 unsigned int n_chan,
double current_time,
74 double current_exposure);
76 std::vector<bool> baseline;
77 std::unique_ptr<dp3::base::DPBuffer> regular_buffer;
80 std::map<unsigned int, RegularBufferElement> RB_elements;
90 std::vector<std::vector<int>> channels_mapping_;
92 unsigned int next_time_slot_to_process_;
95 std::string step_name_;
Buffer holding baseline-dependently averaged (BDA) data.
Buffer holding the data of a timeslot/band.
Class to hold code for virtual base class for Flaggers in DP3.
Definition: BdaBuffer.h:25
General info about DP3 data processing attributes like averaging.
Definition: DPInfo.h:35
DP3 step that expands BDA data in BdaBuffers to regular data in DPBuffers.
Definition: BdaExpander.h:33
void show(std::ostream &) const override
Show the step parameters.
BdaExpander(const std::string &prefix)
void finish() override
Finish the processing of this step and subsequent steps.
bool accepts(MsType dt) const override
Boolean if this step can process this type of data.
Definition: BdaExpander.h:59
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: BdaExpander.h:37
common::Fields getProvidedFields() const override
Definition: BdaExpander.h:39
void showTimings(std::ostream &, double duration) const override
bool process(std::unique_ptr< base::BdaBuffer >) override
void updateInfo(const base::DPInfo &) override
Abstract base class for a DP3 step.
Definition: Step.h:52
static constexpr dp3::common::Fields kUvwField
Definition: Step.h:66
MsType
To check compatibility between steps before running.
Definition: Step.h:57
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
Definition: BdaBuffer.h:27