From 3c5cf067c9562baf26965c8b4ae2367711e8bab5 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Sat, 20 Nov 2010 11:11:59 +0100 Subject: [PATCH] Weather: better cloud altitude interpolation - Easier altitude interpolation rule - Don't interpolate to large altitude offsets --- Environment/clouds-altitude-interpolate.xml | 41 ++++++++++++++----- Environment/clouds-altitude-set.xml | 44 --------------------- Environment/metarinterpolator.xml | 27 ------------- 3 files changed, 31 insertions(+), 81 deletions(-) delete mode 100644 Environment/clouds-altitude-set.xml diff --git a/Environment/clouds-altitude-interpolate.xml b/Environment/clouds-altitude-interpolate.xml index e499ac79a..207cbc35f 100644 --- a/Environment/clouds-altitude-interpolate.xml +++ b/Environment/clouds-altitude-interpolate.xml @@ -21,20 +21,41 @@ /environment/clouds/layer[0]/elevation-ft MetarController:clouds:altitude_interpolate - noise-spike - 8.333 + exponential + + + + + + + -9000 + + + + -9000 + + + + + + + + + + + 2000 + + + + 0 + + + 60 + /environment/metar/valid /environment/params/metar-updates-environment - - - -9000 - - - - -9000 - diff --git a/Environment/clouds-altitude-set.xml b/Environment/clouds-altitude-set.xml deleted file mode 100644 index 933020733..000000000 --- a/Environment/clouds-altitude-set.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - environment/metar/clouds/layer[0]/elevation-ft - /environment/clouds/layer[0]/elevation-ft - - MetarController:clouds:altitude_set - gain - 1.0 - - - /environment/metar/valid - /environment/params/metar-updates-environment - - - - -9000 - - - - -9000 - - - - - - - diff --git a/Environment/metarinterpolator.xml b/Environment/metarinterpolator.xml index c67cb2ab5..348f7bb92 100644 --- a/Environment/metarinterpolator.xml +++ b/Environment/metarinterpolator.xml @@ -282,33 +282,6 @@ - - - - - /environment/metar/clouds/layer[1]/elevation-ft - /environment/clouds/layer[1]/elevation-ft - - - - - /environment/metar/clouds/layer[2]/elevation-ft - /environment/clouds/layer[2]/elevation-ft - - - - - /environment/metar/clouds/layer[3]/elevation-ft - /environment/clouds/layer[3]/elevation-ft - - - - - /environment/metar/clouds/layer[4]/elevation-ft - /environment/clouds/layer[4]/elevation-ft - - -