diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-28 22:13:46 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-28 22:13:46 +0200 |
commit | e43a2435717831e1bc60e8c14499d7380cb09afd (patch) | |
tree | 41e761bad044af4545025bc69cffe446b4c1c6de | |
parent | f57cda04dfe66389d5c19c392423cfcb6057cd5d (diff) |
add note about refraction to README
-rw-r--r-- | README | 8 | ||||
-rw-r--r-- | src/Panorama.cxx | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -125,6 +125,14 @@ not shown by default, but you can enable the display of hidden objects using the Option->Show Hidden menu entry. Hidden objects and hidden GPS way points are displayed in blue. +Refraction +========== + +Refraction caused by temperature and density gardients in the atmosphere is +taken into account according to the approximation described by Tom Chester in: +http://tchester.org/sgm/analysis/peaks/refraction_calculation.html +under the assumption of a temperature change of 6.5°C per 1000m and a +temperature T0 at view point level of 10°C. Stitching ========= diff --git a/src/Panorama.cxx b/src/Panorama.cxx index a072fd0..aa358ec 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -433,7 +433,7 @@ Panorama::alpha(const Hill *m) { double Panorama::refraction(const Hill *m) { - double a, b, c, alpha = 6.5, T0 = 0.0; + double a, b, c, alpha = 6.5, T0 = 10.0; a = 2.9e-4 * exp (-view_height / 10000.0) / (1.0 + 2.9 * T0 / 760.0); b = 2.9 * alpha / (760.0 * (1.0 + 2.9 * T0 / 760.0)); |