HOPS
HOPS class reference
MHO_IonosphericPhaseCorrection.hh
Go to the documentation of this file.
1 #ifndef MHO_IonosphericPhaseCorrection_HH__
2 #define MHO_IonosphericPhaseCorrection_HH__
3 
4 #include <cctype>
5 #include <cmath>
6 #include <complex>
7 #include <map>
8 #include <vector>
9 
10 #include "MHO_Constants.hh"
11 #include "MHO_Message.hh"
12 
14 #include "MHO_TableContainer.hh"
15 #include "MHO_UnaryOperator.hh"
16 
17 namespace hops
18 {
19 
31 class MHO_IonosphericPhaseCorrection: public MHO_UnaryOperator< visibility_type >
32 {
33  public:
36 
42  void SetDifferentialTEC(double dTEC) { fdTEC = dTEC; };
43 
44  protected:
52  virtual bool ExecuteInPlace(visibility_type* in) override;
53 
54  private:
55  double fdTEC;
56 
57  //constants
58  double fIonoK; //dTEC to phase constant
59  std::complex< double > fImagUnit;
60  double fDegToRad;
61 
62  //keys for tag retrieval and matching
63  std::string fChannelLabelKey;
64  std::string fSidebandLabelKey;
65  std::string fBandwidthKey;
66  std::string fLowerSideband;
67  std::string fUpperSideband;
68 
69  //minor helper function to make sure all strings are compared as upper-case only
70  void make_upper(std::string& s)
71  {
72  for(char& c : s)
73  {
74  c = toupper(c);
75  };
76  }
77 };
78 
79 } // namespace hops
80 
81 #endif
Class MHO_IonosphericPhaseCorrection.
Definition: MHO_IonosphericPhaseCorrection.hh:32
MHO_IonosphericPhaseCorrection()
Definition: MHO_IonosphericPhaseCorrection.cc:8
void SetDifferentialTEC(double dTEC)
Setter for differential TEC (controls phase dispersion)
Definition: MHO_IonosphericPhaseCorrection.hh:42
virtual bool ExecuteInPlace(visibility_type *in) override
Applies differential ionospheric phase correction to visibility data in-place.
Definition: MHO_IonosphericPhaseCorrection.cc:24
virtual ~MHO_IonosphericPhaseCorrection()
Definition: MHO_IonosphericPhaseCorrection.cc:22
Class MHO_UnaryOperator.
Definition: MHO_UnaryOperator.hh:24
Definition: MHO_AdhocFlagging.hh:18