From 2e96b9ea2c26536e527afc852bf88edb93385143 Mon Sep 17 00:00:00 2001 From: Gijs de Rooy Date: Sat, 11 May 2013 16:51:14 +0200 Subject: [PATCH] Place default snow line at estimated climatic snow line, based on latitude. Feature is only enabled when 'Set maximum snow line from METAR' is enabled in the environment dialog. --- Environment/metarinterpolator.xml | 45 ++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/Environment/metarinterpolator.xml b/Environment/metarinterpolator.xml index 590e3da92..8a010b9be 100644 --- a/Environment/metarinterpolator.xml +++ b/Environment/metarinterpolator.xml @@ -429,10 +429,44 @@ /environment/metar/clouds/layer[0]/alpha /environment/clouds/layer[0]/alpha - + + + MetarController:climatic-snow-line + gain + 1.0 + + + /environment/params/metar-updates-snow-level + /environment/params/metar-updates-environment + /environment/metar/snow-cover + + + + + + + /position/latitude-deg + /position/latitude-deg + -1 + + + 8.255 + /position/latitude-deg + + 5504 + + + + /environment/snow-level-m + -425 + 7500 + + MetarController:snow-level gain @@ -445,7 +479,7 @@ /environment/metar/valid - + /environment/metar/station-elevation-ft 0.3048 @@ -468,7 +502,6 @@ - 3200 /environment/snow-level-m -425 7500