8 #ifndef DP3_STEPS_PHASESHIFT_H_
9 #define DP3_STEPS_PHASESHIFT_H_
15 #include <aocommon/staticfor.h>
17 #include <casacore/casa/Arrays/Matrix.h>
49 const std::vector<std::string>& defVal);
64 bool process(std::unique_ptr<base::DPBuffer> buffer)
override;
73 void show(std::ostream&)
const override;
76 void showTimings(std::ostream&,
double duration)
const override;
84 const xt::xtensor<std::complex<double>, 2>&
getPhasors()
const {
94 casacore::MDirection handleCenter();
97 std::vector<std::string> itsCenter;
98 std::vector<double> itsFreqC;
99 casacore::Matrix<double> itsEulerMatrix;
101 xt::xtensor<std::complex<double>, 2>
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
DP3 step class to shift the data to another phase center.
Definition: PhaseShift.h:37
void updateInfo(const base::DPInfo &) override
Update the general info.
void showTimings(std::ostream &, double duration) const override
Show the timings.
PhaseShift(const common::ParameterSet &, const std::string &prefix)
PhaseShift(const common::ParameterSet &, const std::string &prefix, const std::vector< std::string > &defVal)
bool process(std::unique_ptr< base::DPBuffer > buffer) override
common::Fields getProvidedFields() const override
Definition: PhaseShift.h:57
const xt::xtensor< std::complex< double >, 2 > & getPhasors() const
Definition: PhaseShift.h:84
const std::vector< std::string > & getPhaseCenter() const
Get the phase center.
Definition: PhaseShift.h:89
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: PhaseShift.h:53
void show(std::ostream &) const override
Show the step parameters.
static void fillEulerMatrix(casacore::Matrix< double > &mat, const base::Direction &direction)
Fill the Euler rotation matrix for given ra/dec.
void finish() override
Finish the processing of this step and subsequent steps.
Abstract base class for a DP3 step.
Definition: Step.h:52
static constexpr dp3::common::Fields kUvwField
Definition: Step.h:66
static constexpr dp3::common::Fields kDataField
Definition: Step.h:60
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
A direction on the celestial sphere.
Definition: Direction.h:15