9 #ifndef DPPP_SCALEDATA_H
10 #define DPPP_SCALEDATA_H
14 #include <xtensor/containers/xtensor.hpp>
19 #include <casacore/casa/Arrays/Cube.h>
60 bool process(std::unique_ptr<base::DPBuffer>)
override;
65 bool process(std::unique_ptr<base::BdaBuffer>)
override;
74 void show(std::ostream&)
const override;
77 void showTimings(std::ostream&,
double duration)
const override;
85 void fillSizeScaleFactors(
unsigned int nNominal, std::vector<float>& fact);
89 bool itsScaleSizeGiven;
91 std::vector<std::string> itsStationExp;
92 std::vector<std::string> itsCoeffStr;
93 std::vector<std::vector<float>>
95 xt::xtensor<float, 3> itsFactors;
Buffer holding baseline-dependently averaged (BDA) data.
Buffer holding the data of a timeslot/band.
General info about DP3 data processing attributes like averaging.
Definition: DPInfo.h:35
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
DPPP step class for freq-dependent scaling of the data.
Definition: ScaleData.h:44
void updateInfo(const base::DPInfo &) override
Update the general info.
common::Fields getProvidedFields() const override
Definition: ScaleData.h:55
void finish() override
Finish the processing of this step and subsequent steps.
MsType outputs() const override
Return which datatype this step outputs.
Definition: ScaleData.h:81
bool process(std::unique_ptr< base::DPBuffer >) override
ScaleData(const common::ParameterSet &, const std::string &prefix, MsType input_type)
void show(std::ostream &) const override
Show the step parameters.
bool accepts(MsType dt) const override
Boolean if this step can process this type of data.
Definition: ScaleData.h:79
bool process(std::unique_ptr< base::BdaBuffer >) override
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: ScaleData.h:53
void showTimings(std::ostream &, double duration) const override
Show the timings.
Abstract base class for a DP3 step.
Definition: Step.h:52
MsType
To check compatibility between steps before running.
Definition: Step.h:57
static constexpr dp3::common::Fields kDataField
Definition: Step.h:60
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53