From 2f95972164a0a749296cfe8d469edca3a158d7d8 Mon Sep 17 00:00:00 2001
From: Gijs de Rooy <gijsrooy@hotmail.com>
Date: Sat, 11 May 2013 14:29:25 +0200
Subject: [PATCH 1/2] Update date in about dialog

---
 gui/dialogs/about.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui/dialogs/about.xml b/gui/dialogs/about.xml
index bddef0a9f..d4bd8465a 100644
--- a/gui/dialogs/about.xml
+++ b/gui/dialogs/about.xml
@@ -74,7 +74,7 @@
     </group>
     
     <text>
-      <label>(c) 1996-2012, the FlightGear Contributors</label>
+      <label>(c) 1996-2013, the FlightGear Contributors</label>
     </text>
     
     <group>

From 2e96b9ea2c26536e527afc852bf88edb93385143 Mon Sep 17 00:00:00 2001
From: Gijs de Rooy <gijsrooy@hotmail.com>
Date: Sat, 11 May 2013 16:51:14 +0200
Subject: [PATCH 2/2] 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 @@
     <input>/environment/metar/clouds/layer[0]/alpha</input>
     <output>/environment/clouds/layer[0]/alpha</output>
   </filter>
-<!-- replace weather-utility.nas 
-    # Put the snow line slightly below the station's elevation, 
-    # so the station is completely covered with snow
--->
+  <!--
+    Place snow line at estimated climatic snow line.
+  -->
+  <filter>
+    <name>MetarController:climatic-snow-line</name>
+    <type>gain</type>
+    <gain>1.0</gain>
+    <enable>
+      <condition>
+        <property>/environment/params/metar-updates-snow-level</property>
+        <property>/environment/params/metar-updates-environment</property>
+        <not><property>/environment/metar/snow-cover</property></not>
+      </condition>
+    </enable>
+    <input>
+      <expression>
+        <sum>
+          <product>
+            <property>/position/latitude-deg</property>
+            <property>/position/latitude-deg</property>
+            <value>-1</value>
+          </product>
+          <product>
+            <value>8.255</value>
+            <property>/position/latitude-deg</property>
+          </product>
+          <value>5504</value>
+        </sum>
+      </expression>
+    </input>
+    <output>/environment/snow-level-m</output>
+    <min>-425</min>
+    <max>7500</max>
+  </filter>
+  <!--
+    Lower the snow line when a station below the current snow line reports
+    snow cover.
+  -->
   <filter>
     <name>MetarController:snow-level</name>
     <type>gain</type>
@@ -445,7 +479,7 @@
         <property>/environment/metar/valid</property>
         <less-than>
           <expression>
-            <difference> 
+            <difference>
               <product>
                 <property>/environment/metar/station-elevation-ft</property>
                 <value>0.3048</value>
@@ -468,7 +502,6 @@
         </sum>
       </expression>
     </input>
-    <input>3200</input>
     <output>/environment/snow-level-m</output>
     <min>-425</min>
     <max>7500</max>