5 #ifndef DP3_STEPS_MSUPDATER_H_
6 #define DP3_STEPS_MSUPDATER_H_
8 #include <casacore/tables/Tables/ColumnDesc.h>
9 #include <casacore/tables/Tables/RefRows.h>
10 #include <casacore/tables/Tables/Table.h>
33 const std::string& prefix,
bool writeHistory =
true);
41 bool process(std::unique_ptr<base::DPBuffer> buffer)
override;
50 void show(std::ostream&)
const override;
53 void showTimings(std::ostream&,
double duration)
const override;
59 bool throwError =
true);
63 void putFlags(
const casacore::RefRows& rowNrs,
64 const casacore::Cube<bool>& flags);
67 void putWeights(
const casacore::RefRows& rowNrs,
68 const casacore::Cube<float>& weights);
71 void putData(
const casacore::RefRows& rowNrs,
72 const casacore::Cube<casacore::Complex>& data);
77 bool addColumn(
const std::string& colname,
const casacore::DataType dataType,
78 const casacore::ColumnDesc& cd);
81 std::string itsMSName;
82 casacore::Table itsMS;
85 std::string itsDataColName;
86 std::string itsFlagColName;
87 std::string itsWeightColName;
88 unsigned int itsNrTimesFlush;
89 unsigned int itsNrDone;
92 bool itsWeightColAdded;
95 unsigned int itsTileSize;
Buffer holding the data of a timeslot/band.
Definition: DPBuffer.h:92
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 writing to an MS.
Definition: MSUpdater.h:30
void showTimings(std::ostream &, double duration) const override
Show the timings.
bool process(std::unique_ptr< base::DPBuffer > buffer) override
void finish() override
Finish the processing of this step and subsequent steps.
void show(std::ostream &) const override
Show the step parameters.
static bool updateAllowed(const base::DPInfo &info, casacore::String msName, bool throwError=true)
MSUpdater(std::string msName, const common::ParameterSet &parset, const std::string &prefix, bool writeHistory=true)
common::Fields getRequiredFields() const override
Get the fields required by the current step.
void updateInfo(const base::DPInfo &) override
Update the general info.
void SetFieldsToWrite(const common::Fields &fields) override
Base class for output steps.
Definition: OutputStep.h:15
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
Definition: StManParsetKeys.h:46