CARMA C++
Refraction.h
Go to the documentation of this file.
1 #ifndef REFRACTION_H
2 #define REFRACTION_H
3 
12 
13 // ICS include needed for rtomas
14 
15 #include "carma/szaarrayutils/szaconst.h"
16 
17 namespace sza {
18  namespace antenna {
19  namespace control {
20 
34  class Refraction {
35 
36  public:
37 
41  enum Mode {
42  OPTICAL,
43  RADIO
44  };
45 
49  Refraction();
50 
54  void reset();
55 
59  inline bool isUsable() {
60  return usable_;
61  };
62 
66  inline void setUsable(bool usable) {
67  usable_ = usable;
68  };
69 
73  inline void setA(double a) {
74  a_ = a;
75  }
76 
80  inline double getA() {
81  return a_;
82  }
83 
87  inline void setB(double b) {
88  b_ = b;
89  }
90 
94  inline double getB() {
95  return b_;
96  }
97 
101  double apply(PointingCorrections* f);
102 
107  void pack(signed* s_elements);
108 
109  private:
110 
114  bool usable_;
115 
119  double a_;
120 
124  double b_;
125 
126  }; // End class Refraction
127 
128  }; // End namespace control
129  }; // End namespace antenna
130 }; // End namespace sza
131 
132 #endif // End #ifndef
double getA()
Return the A coefficient of the above equation.
Definition: Refraction.h:80
double getB()
Return the B coefficient of the above equation.
Definition: Refraction.h:94
While computing pointing corrections, an object of the following type is used to communicate accumula...
bool isUsable()
Method to query if this refraction correction is usable.
Definition: Refraction.h:59
double apply(PointingCorrections *f)
Apply the refraction correction to the pointing corrections.
void setB(double b)
Set the B coefficient of the above equation.
Definition: Refraction.h:87
Tagged: Thu Nov 13 16:53:47 UTC 2003.
void reset()
Reset internal data members to something sensible.
Mode
Enumerate valid refraction models.
Definition: Refraction.h:41
void pack(signed *s_elements)
Method to pack our refraction coefficients in a format suitable for writing to the register database...
void setA(double a)
Set the A coefficient of the above equation.
Definition: Refraction.h:73
Class to encapsulate refraction corrections.
Definition: Refraction.h:34
void setUsable(bool usable)
Method to set the usable status of this correction.
Definition: Refraction.h:66