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.
This commit is contained in:
parent
2f95972164
commit
2e96b9ea2c
1 changed files with 39 additions and 6 deletions
|
@ -429,10 +429,44 @@
|
||||||
<input>/environment/metar/clouds/layer[0]/alpha</input>
|
<input>/environment/metar/clouds/layer[0]/alpha</input>
|
||||||
<output>/environment/clouds/layer[0]/alpha</output>
|
<output>/environment/clouds/layer[0]/alpha</output>
|
||||||
</filter>
|
</filter>
|
||||||
<!-- replace weather-utility.nas
|
<!--
|
||||||
# Put the snow line slightly below the station's elevation,
|
Place snow line at estimated climatic snow line.
|
||||||
# so the station is completely covered with snow
|
-->
|
||||||
-->
|
<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>
|
<filter>
|
||||||
<name>MetarController:snow-level</name>
|
<name>MetarController:snow-level</name>
|
||||||
<type>gain</type>
|
<type>gain</type>
|
||||||
|
@ -468,7 +502,6 @@
|
||||||
</sum>
|
</sum>
|
||||||
</expression>
|
</expression>
|
||||||
</input>
|
</input>
|
||||||
<input>3200</input>
|
|
||||||
<output>/environment/snow-level-m</output>
|
<output>/environment/snow-level-m</output>
|
||||||
<min>-425</min>
|
<min>-425</min>
|
||||||
<max>7500</max>
|
<max>7500</max>
|
||||||
|
|
Loading…
Reference in a new issue