This is the initial commit for a reworked environment controller. The main intention is to decouple the individual modules like metar fetch, metar properties, environment interpolation etc. to make it easier for other weather module developers to modify environment settings. As a side effect, the dialogs for weather-scenario, weather-conditions, clouds and precipitations have been merged into a single dialog
232 lines
8.2 KiB
XML
232 lines
8.2 KiB
XML
<?xml version="1.0" ?>
|
|
<!--
|
|
This file is part of FlightGear, the free flight simulator
|
|
http://www.flightgear.org/
|
|
|
|
Copyright (C) 2010 Curtis L. Olson - http://www.flightgear.org/~curt
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
-->
|
|
<PropertyList>
|
|
<weather-scenarios>
|
|
<scenario>
|
|
<name>Disabled</name>
|
|
<description>METAR weather generation is disabled. Use 'Weather Conditions' and 'Clouds' dialogs to setup your weather.</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Live data</name>
|
|
<description>Fetch live weather data for your nearest airport from noaa.gov. You need a working internet connection.</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Manual input</name>
|
|
<description>Enter your favorite METAR weather in the textbox below. A valid METAR syntax is required.</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Fair weather</name>
|
|
<metar>XXXX 012345Z 15003KT 12SM SCT041 FEW200 20/08 Q1015 NOSIG</metar>
|
|
<description>A lovely day for trip to your favorite 100$ hamburger airfield</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Thunderstorm</name>
|
|
<metar>XXXX 012345Z 15012G25KT 4000 TSRA FEW030CB SCT035TCU 27/24 Q0995</metar>
|
|
<description>A hot and damp summer day with thunderstorms developing in the afternoon.
|
|
Be prepared for reduction of visibility in showers and strong gusts
|
|
near thunderstorms</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Stormy Monday</name>
|
|
<metar>XXXX 012345Z 28035G50KT 250V300 9999 TSRA SCT022CB BKN030 13/09 Q1005</metar>
|
|
<description>You're out for an adventure? Gusty winds blowing from the west
|
|
and isolated thunderstorms should be avoided. Fasten your seatbelt!</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>Marginal VFR</name>
|
|
<metar>XXXX 012345Z 23010KT 5000 SHRA SCT012 BKN018 OVC060 15/11 Q1010</metar>
|
|
<description>After the storm - limited visibility and some showers.
|
|
Go or No-Go?</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>CAT I minimum</name>
|
|
<metar>XXXX 012345Z 15015KT 0800 -RA BKN002 OVC004 08/06 Q0990</metar>
|
|
<description>If you just got your IFR rating, this is what you are allowed to do. But can you?</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>CAT II minimum</name>
|
|
<metar>XXXX 012345Z 15010KT 0400 -RA BKN001 OVC002 08/06 Q0990</metar>
|
|
<description>With just a 1/4 mile visibility and clouds at 100ft, you don't see much of the runway until
|
|
seconds before touchdown. Trust your instruments to stay alive.</description>
|
|
</scenario>
|
|
<scenario>
|
|
<name>CAT IIIb minimum</name>
|
|
<metar>XXXX 012345Z VRB01KT 0100 -RA FG OVC001 OVC002 02/02 Q0990</metar>
|
|
<description>This is expert level. You will barely see the taxiway from the cockpit, even if you are
|
|
on ground. Fog and light drizzle, freezing level at 1000ft.</description>
|
|
</scenario>
|
|
</weather-scenarios>
|
|
<weather-scenario>Fair weather</weather-scenario>
|
|
<config>
|
|
|
|
<boundary-transition-ft>500</boundary-transition-ft>
|
|
|
|
<boundary>
|
|
|
|
<entry>
|
|
<elevation-ft>0</elevation-ft>
|
|
<wind-from-heading-deg>270</wind-from-heading-deg>
|
|
<wind-speed-kt>3</wind-speed-kt>
|
|
<visibility-m>16093.44</visibility-m>
|
|
<pressure-sea-level-inhg>29.92</pressure-sea-level-inhg>
|
|
<temperature-degc>15.0</temperature-degc>
|
|
<dewpoint-degc>5.0</dewpoint-degc>
|
|
<turbulence>
|
|
<factor>0.2</factor>
|
|
<magnitude-norm>0.0</magnitude-norm>
|
|
<rate-hz>1.0</rate-hz>
|
|
</turbulence>
|
|
<wind-heading-change-deg>0</wind-heading-change-deg>
|
|
<wind-speed-change-rel>0</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
<entry>
|
|
<elevation-ft>500</elevation-ft>
|
|
<wind-from-heading-deg>280</wind-from-heading-deg>
|
|
<wind-speed-kt>6</wind-speed-kt>
|
|
<turbulence>
|
|
<factor>1.0</factor>
|
|
<magnitude-norm>0.1</magnitude-norm>
|
|
<rate-hz>1.0</rate-hz>
|
|
</turbulence>
|
|
<wind-heading-change-deg>5</wind-heading-change-deg>
|
|
<wind-speed-change-rel>0.3</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
</boundary>
|
|
|
|
<aloft>
|
|
|
|
<entry>
|
|
<elevation-ft>5000</elevation-ft>
|
|
<wind-from-heading-deg>300</wind-from-heading-deg>
|
|
<wind-speed-kt>10</wind-speed-kt>
|
|
<visibility-m>16093.44</visibility-m>
|
|
<pressure-sea-level-inhg>29.92</pressure-sea-level-inhg>
|
|
<turbulence>
|
|
<factor>0.5</factor>
|
|
<magnitude-norm>0.05</magnitude-norm>
|
|
<rate-hz>1.0</rate-hz>
|
|
</turbulence>
|
|
<wind-heading-change-deg>25</wind-heading-change-deg>
|
|
<wind-speed-change-rel>1</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
<entry>
|
|
<elevation-ft>10000</elevation-ft>
|
|
<wind-from-heading-deg>310</wind-from-heading-deg>
|
|
<wind-speed-kt>20</wind-speed-kt>
|
|
<turbulence>
|
|
<factor>0.0</factor>
|
|
<magnitude-norm>0.0</magnitude-norm>
|
|
<rate-hz>1.0</rate-hz>
|
|
</turbulence>
|
|
<wind-heading-change-deg>30</wind-heading-change-deg>
|
|
<wind-speed-change-rel>1.2</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
<entry>
|
|
<elevation-ft>18000</elevation-ft>
|
|
<wind-from-heading-deg>320</wind-from-heading-deg>
|
|
<wind-speed-kt>30</wind-speed-kt>
|
|
<wind-heading-change-deg>35</wind-heading-change-deg>
|
|
<wind-speed-change-rel>1.3</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
<entry>
|
|
<elevation-ft>24000</elevation-ft>
|
|
<wind-from-heading-deg>330</wind-from-heading-deg>
|
|
<wind-speed-kt>50</wind-speed-kt>
|
|
<wind-heading-change-deg>35</wind-heading-change-deg>
|
|
<wind-speed-change-rel>1.3</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
<entry>
|
|
<elevation-ft>30000</elevation-ft>
|
|
<wind-from-heading-deg>340</wind-from-heading-deg>
|
|
<wind-speed-kt>70</wind-speed-kt>
|
|
<wind-heading-change-deg>35</wind-heading-change-deg>
|
|
<wind-speed-change-rel>1.3</wind-speed-change-rel>
|
|
</entry>
|
|
|
|
</aloft>
|
|
|
|
</config>
|
|
|
|
<clouds>
|
|
<layer n="0">
|
|
<coverage>clear</coverage>
|
|
<elevation-ft>-9999</elevation-ft>
|
|
<thickness-ft>600</thickness-ft>
|
|
<transition-ft>150</transition-ft>
|
|
<span-m>40000</span-m>
|
|
</layer>
|
|
<layer n="1">
|
|
<coverage>clear</coverage>
|
|
<elevation-ft>-9999</elevation-ft>
|
|
<thickness-ft>65</thickness-ft>
|
|
<transition-ft>25</transition-ft>
|
|
<span-m>40000</span-m>
|
|
</layer>
|
|
<layer n="2">
|
|
<coverage>clear</coverage>
|
|
<elevation-ft>-9999</elevation-ft>
|
|
<span-m>40000</span-m>
|
|
</layer>
|
|
<layer n="3">
|
|
<coverage>clear</coverage>
|
|
<elevation-ft>-9999</elevation-ft>
|
|
<span-m>40000</span-m>
|
|
</layer>
|
|
<layer n="4">
|
|
<coverage>clear</coverage>
|
|
<elevation-ft>-9999</elevation-ft>
|
|
<span-m>40000</span-m>
|
|
</layer>
|
|
</clouds>
|
|
|
|
<cloudlayers include="cloudlayers.xml"/>
|
|
|
|
<realwx>
|
|
<metar>/environment/metar</metar>
|
|
<!-- user NOAA for METAR (no aloft data) -->
|
|
<data-source>noaa</data-source>
|
|
|
|
<!-- use http://www.navlost.eu/ for METAR and aloft data -->
|
|
<!-- data-source>nwx<data-source -->
|
|
<enabled>true</enabled>
|
|
</realwx>
|
|
|
|
<params>
|
|
<metar-max-age-min type="long">240</metar-max-age-min> <!-- deprecated -->
|
|
<metar-updates-environment type="bool">true</metar-updates-environment>
|
|
<control-fdm-atmosphere type="bool">true</control-fdm-atmosphere>
|
|
<contrail-altitude>30000</contrail-altitude>
|
|
</params>
|
|
|
|
<wildfire>
|
|
<enabled type="bool" userarchive="y">false</enabled>
|
|
<share-events type="bool" userarchive="y">false</share-events>
|
|
<save-on-exit type="bool" userarchive="y">false</save-on-exit>
|
|
<restore-on-startup type="bool" userarchive="y">false</restore-on-startup>
|
|
<fire-on-crash type="bool" userarchive="y">false</fire-on-crash>
|
|
<report-score type="bool" userarchive="y">false</report-score>
|
|
<data type="string"/>
|
|
</wildfire>
|
|
|
|
</PropertyList>
|