My Project
|
#include <Refraction.h>
Public Types | |
enum | Mode { OPTICAL, RADIO } |
Public Member Functions | |
Refraction () | |
void | reset () |
bool | isUsable () |
bool | setUsable (bool usable) |
void | setA (double a) |
double | getA () |
void | setB (double b) |
double | getB () |
double | apply (PointingCorrections *f) |
void | pack (signed *s_elements) |
Class to encapsulate refraction corrections
The standard approximation for atmospheric refraction is:
vac = obs - (A.cot(obs) + B.cot(obs)^3)
where vac is the elevation of the source as would be seen if there were no atmosphere, and obs is the elevation after refraction. Updates of the A and B terms are periodically received from the weather-station and recorded in an object of the following type.
Enumerate valid refraction models
Refraction::Refraction | ( | ) |
Constructor
....................................................................... Constructor just calls initialization method
double Refraction::apply | ( | PointingCorrections * | f | ) |
Apply the refraction correction to the pointing corrections
|
inline |
Return the A coefficient of the above equation
|
inline |
Return the B coefficient of the above equation
|
inline |
Method to query if this refraction correction is usable
void Refraction::pack | ( | signed * | s_elements | ) |
Method to pack our refraction coefficients in a format suitable for writing to the register database
....................................................................... Record the refraction parameters in micro-arcseconds.
void Refraction::reset | ( | ) |
Reset internal data members to something sensible
....................................................................... Reset our data members to something sensible
|
inline |
Set the A coefficient of the above equation
|
inline |
Set the B coefficient of the above equation
|
inline |
Method to set the usable status of this correction