9 #ifndef DP3_STEPS_MULTIMSREADER_H_
10 #define DP3_STEPS_MULTIMSREADER_H_
12 #include <casacore/tables/Tables/TableIter.h>
13 #include <casacore/tables/Tables/RefRows.h>
14 #include <casacore/casa/Arrays/Slicer.h>
58 bool process(std::unique_ptr<base::DPBuffer> buffer)
override;
67 void show(std::ostream&)
const override;
73 void showTimings(std::ostream&,
double duration)
const override;
79 std::string
msName()
const override {
return readers_.front().name; }
82 const casacore::Table&
table()
const override {
83 return readers_[first_].ms_reader->table();
101 void GetWeights(std::unique_ptr<base::DPBuffer>& buffer);
105 unsigned int n_missing_;
108 std::shared_ptr<MsReader> ms_reader;
109 std::shared_ptr<ResultStep> result;
111 std::vector<Reader> readers_;
112 unsigned int n_fill_channels_;
Class to keep counts of nr of flagged points.
DP3 step reading from an MS.
Class to calculate UVW coordinates Note: this code is used by LOFAR and APERTIF software.
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 reading from multiple MSs.
Definition: MultiMsReader.h:47
void updateInfo(const base::DPInfo &) override
Update the general info (by initializing it).
void showTimings(std::ostream &, double duration) const override
Show the timings.
std::string msName() const override
Returns (only) the name of the first MS.
Definition: MultiMsReader.h:79
MultiMsReader(const std::vector< std::string > &msNames, const common::ParameterSet &parset, const std::string &prefix)
const casacore::Table & table() const override
Returns only the first MS table.
Definition: MultiMsReader.h:82
bool process(std::unique_ptr< base::DPBuffer > buffer) override
void showCounts(std::ostream &) const override
If needed, show the flag counts.
void setFieldsToRead(const dp3::common::Fields &fields) override
Set which fields must be read.
void show(std::ostream &) const override
Show the step parameters.
void finish() override
Finish the processing of this step and subsequent steps.
~MultiMsReader() override
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53