Packice overlay and water color variations for high quality water shader in Atmospher...
[fg:toms-fgdata.git] / Environment / environment.xml
1 <?xml version="1.0" ?>
2 <!--
3  This file is part of FlightGear, the free flight simulator
4  http://www.flightgear.org/
5
6  Copyright (C) 2010  Curtis L. Olson  - http://www.flightgear.org/~curt
7
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version.
12
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  General Public License for more details.
17 -->
18 <PropertyList>
19   <weather-scenarios>
20     <scenario>
21       <name type="string">Live data</name>
22       <description type="string">
23         Fetch live weather data for your nearest airport from noaa.gov. You need a working internet connection.
24         All the controls in this dialog are computed automatically, once a valid METAR is received.
25       </description>
26       <local-weather>
27         <tile-type>live</tile-type>
28         <tile-management>METAR</tile-management>        
29       </local-weather>
30     </scenario>
31     <scenario>
32       <name type="string">Manual input</name>
33       <description type="string">Enter your favorite METAR weather in the textbox above. A valid METAR syntax is required.</description>
34       <local-weather>
35         <tile-type>manual</tile-type>
36         <tile-management>METAR</tile-management>        
37       </local-weather>
38     </scenario>
39     <scenario>
40       <name type="string">Core high pressure region</name>
41       <metar type="string">XXXX 012345Z 15003KT 19SM FEW072 FEW350 25/07 Q1028 NOSIG</metar>
42       <description type="string">The center of a high pressure region, characterized by descending air and hence only weak cloud development with high visibility.</description>
43       <local-weather>
44         <tile-type>High-pressure-core</tile-type>
45         <tile-management>realistic weather</tile-management>        
46       </local-weather>
47     </scenario>
48     <scenario>
49       <name type="string">High pressure region</name>
50       <metar type="string">XXXX 012345Z 15003KT 12SM SCT048 FEW300 20/08 Q1022 NOSIG</metar>
51       <description type="string">A high pressure region, characterized my moderate to strong Cumulus development in the afternoon and fairly good visibility conditions.</description>
52       <local-weather>
53         <tile-type>High-pressure</tile-type>
54         <tile-management>realistic weather</tile-management>        
55       </local-weather>
56     </scenario>
57     <scenario>
58       <name type="string">Border of a high pressure region</name>
59       <metar type="string">XXXX 012345Z 15003KT 10SM SCT036 SCT150 17/08 Q1016 NOSIG</metar>
60       <description type="string">The border of a high pressure region, in which the airmass becomes unstable and various convective and stratiform clouds may appear.</description>
61       <local-weather>
62         <tile-type>High-pressure-border</tile-type>
63         <tile-management>realistic weather</tile-management>        
64       </local-weather>
65     </scenario>
66     <scenario>
67       <name type="string">Border of a low pressure region</name>
68       <metar type="string">XXXX 012345Z 15003KT 9SM BKN028 SCT090 FEW160 15/08 Q1010 NOSIG</metar>
69       <description type="string">The border of a low pressure region, in which the airmass is unstable and convective clouds start to form layers and merge into stratiform clouds.</description>
70       <local-weather>
71         <tile-type>Low-pressure-border</tile-type>
72         <tile-management>realistic weather</tile-management>        
73       </local-weather>
74     </scenario>
75     <scenario>
76       <name type="string">Low pressure region</name>
77       <metar type="string">XXXX 012345Z 15003KT 6SM SHRA BKN024 BKN053 FEW090 13/07 Q1004 NOSIG</metar>
78       <description type="string">A low pressure region, characterized by rising air, widespread formation of stratiform clouds and beginning rain.</description>
79       <local-weather>
80         <tile-type>Low-pressure</tile-type>
81         <tile-management>realistic weather</tile-management>        
82       </local-weather>
83     </scenario>
84     <scenario>
85       <name type="string">Core low pressure region</name>
86       <metar type="string">XXXX 012345Z 15003KT 4SM RA OVC020 SCT050 07/02 Q0998 NOSIG</metar>
87       <description type="string">The core of a low pressure region, characterized by overcast clouds, bad visibility on the ground and significant rainfall.</description>
88       <local-weather>
89         <tile-type>Low-pressure-core</tile-type>
90         <tile-management>realistic weather</tile-management>        
91       </local-weather>
92     </scenario>
93     <scenario>
94       <name type="string">Fair weather</name>
95       <metar type="string">XXXX 012345Z 15003KT 12SM SCT041 FEW200 20/08 Q1015 NOSIG</metar>
96       <description type="string">A lovely day for trip to your favorite 100$ hamburger airfield</description>
97       <local-weather>
98         <tile-type>High-pressure-core</tile-type>
99         <tile-management>realistic weather</tile-management>        
100       </local-weather>
101     </scenario>
102     <scenario>
103       <name type="string">Thunderstorm</name>
104       <metar type="string">XXXX 012345Z 15012G25KT 4000 TSRA FEW030CB SCT035TCU 27/24 Q0995</metar>
105       <description type="string">
106         A hot and damp summer day with thunderstorms developing in the afternoon.
107         Be prepared for reduction of visibility in showers and strong gusts
108         near thunderstorms
109       </description>
110       <local-weather>
111         <tile-type>Thunderstorms</tile-type>
112         <tile-management>repeat tile</tile-management>        
113       </local-weather>
114     </scenario>
115     <scenario>
116       <name type="string">Stormy Monday</name>
117       <metar type="string">XXXX 012345Z 28035G50KT 250V300 9999 TSRA SCT022CB BKN030 13/09 Q1005</metar>
118       <description type="string">
119         You're out for an adventure? Gusty winds blowing from the west
120         and isolated thunderstorms should be avoided. Fasten your seatbelt!
121       </description>
122     </scenario>
123     <scenario>
124       <name type="string">Marginal VFR</name>
125       <metar type="string">XXXX 012345Z 23010KT 5000 SHRA SCT012 BKN018 OVC060 15/11 Q1010</metar>
126       <description type="string">
127         After the storm - limited visibility and some showers.
128         Go or No-Go?
129       </description>
130     </scenario>
131     <scenario>
132       <name type="string">CAT I minimum</name>
133       <metar type="string">XXXX 012345Z 15015KT 0800 -RA BKN002 OVC004 08/06 Q0990</metar>
134       <description type="string">If you just got your IFR rating, this is what you are allowed to do. But can you?</description>
135     </scenario>
136     <scenario>
137       <name type="string">CAT II minimum</name>
138       <metar type="string">XXXX 012345Z 15010KT 0400 -RA BKN001 OVC002 08/06 Q0990</metar>
139       <description type="string">
140         With just a 1/4 mile visibility and clouds at 100ft, you don't see much of the runway until
141         seconds before touchdown. Trust your instruments to stay alive.
142       </description>
143     </scenario>
144     <scenario>
145       <name type="string">CAT IIIb minimum</name>
146       <metar type="string">XXXX 012345Z VRB01KT 0100 -RA FG OVC001 OVC002 02/02 Q0990</metar>
147       <description type="string">
148         This is expert level. You will barely see the taxiway from the cockpit, even if you are
149         on ground. Fog and light drizzle, freezing level at 1000ft.
150       </description>
151     </scenario>
152
153     <scenario>
154       <name type="string">Early morning fog</name>
155       <metar type="string">XXXX 012345Z 00000KT 0800 FG NCD 08/08 A3030</metar>
156       <description type="string">
157         Fog developed this autumn's morning. Expect good visibility above the layer.
158         However - getting through it can be a challenge. Stay alive for a 500' climb
159         and you'll see the sun!
160       </description>
161     </scenario>
162   </weather-scenarios>
163   <weather-scenario type="string">Fair weather</weather-scenario>
164   <config>
165
166     <boundary-transition-ft type="double">500</boundary-transition-ft>
167
168     <boundary>
169
170       <entry>
171         <elevation-ft type="double">0</elevation-ft>
172         <wind-from-heading-deg type="double">270</wind-from-heading-deg>
173         <wind-speed-kt type="double">3</wind-speed-kt>
174         <visibility-m type="double">16093.44</visibility-m>
175         <pressure-sea-level-inhg type="double">29.92</pressure-sea-level-inhg>
176         <temperature-degc type="double">15.0</temperature-degc>
177         <dewpoint-degc type="double">5.0</dewpoint-degc>
178         <turbulence>
179           <factor type="double">0.2</factor>
180           <magnitude-norm type="double">0.0</magnitude-norm>
181           <rate-hz type="double">1.0</rate-hz>
182         </turbulence>
183         <wind-heading-change-deg type="double">0</wind-heading-change-deg>
184         <wind-speed-change-rel type="double">0</wind-speed-change-rel>
185       </entry>
186
187       <entry>
188         <elevation-ft type="double">500</elevation-ft>
189         <wind-from-heading-deg type="double">280</wind-from-heading-deg>
190         <wind-speed-kt type="double">6</wind-speed-kt>
191         <turbulence>
192           <factor type="double">1.0</factor>
193           <magnitude-norm type="double">0.1</magnitude-norm>
194           <rate-hz type="double">1.0</rate-hz>
195         </turbulence>
196         <wind-heading-change-deg type="double">5</wind-heading-change-deg>
197         <wind-speed-change-rel type="double">0.3</wind-speed-change-rel>
198       </entry>
199
200     </boundary>
201
202     <aloft>
203
204       <entry>
205         <elevation-ft type="double">5000</elevation-ft>
206         <wind-from-heading-deg type="double">300</wind-from-heading-deg>
207         <wind-speed-kt type="double">10</wind-speed-kt>
208         <visibility-m type="double">16093.44</visibility-m>
209         <pressure-sea-level-inhg type="double">29.92</pressure-sea-level-inhg>
210         <turbulence>
211           <factor type="double">0.5</factor>
212           <magnitude-norm type="double">0.05</magnitude-norm>
213           <rate-hz type="double">1.0</rate-hz>
214         </turbulence>
215         <wind-heading-change-deg type="double">25</wind-heading-change-deg>
216         <wind-speed-change-rel type="double">1</wind-speed-change-rel>
217       </entry>
218
219       <entry>
220         <elevation-ft type="double">10000</elevation-ft>
221         <wind-from-heading-deg type="double">310</wind-from-heading-deg>
222         <wind-speed-kt type="double">20</wind-speed-kt>
223         <turbulence>
224           <factor type="double">0.0</factor>
225           <magnitude-norm type="double">0.0</magnitude-norm>
226           <rate-hz type="double">1.0</rate-hz>
227         </turbulence>
228         <wind-heading-change-deg type="double">30</wind-heading-change-deg>
229         <wind-speed-change-rel type="double">1.2</wind-speed-change-rel>
230       </entry>
231
232       <entry>
233         <elevation-ft type="double">18000</elevation-ft>
234         <wind-from-heading-deg type="double">320</wind-from-heading-deg>
235         <wind-speed-kt type="double">30</wind-speed-kt>
236         <wind-heading-change-deg type="double">35</wind-heading-change-deg>
237         <wind-speed-change-rel type="double">1.3</wind-speed-change-rel>
238       </entry>
239
240       <entry>
241         <elevation-ft type="double">24000</elevation-ft>
242         <wind-from-heading-deg type="double">330</wind-from-heading-deg>
243         <wind-speed-kt type="double">50</wind-speed-kt>
244         <wind-heading-change-deg type="double">35</wind-heading-change-deg>
245         <wind-speed-change-rel type="double">1.3</wind-speed-change-rel>
246       </entry>
247
248       <entry>
249         <elevation-ft type="double">30000</elevation-ft>
250         <wind-from-heading-deg type="double">340</wind-from-heading-deg>
251         <wind-speed-kt type="double">70</wind-speed-kt>
252         <wind-heading-change-deg type="double">35</wind-heading-change-deg>
253         <wind-speed-change-rel type="double">1.3</wind-speed-change-rel>
254       </entry>
255
256     </aloft>
257
258   </config>
259
260   <clouds>
261     <layer n="0">
262       <coverage type="string">clear</coverage>
263       <elevation-ft type="double">-9999</elevation-ft>
264       <thickness-ft type="double">600</thickness-ft>
265       <transition-ft type="double">150</transition-ft>
266       <span-m>40000</span-m>
267     </layer>
268     <layer n="1">
269       <coverage type="string">clear</coverage>
270       <elevation-ft type="double">-9999</elevation-ft>
271       <thickness-ft type="double">65</thickness-ft>
272       <transition-ft type="double">25</transition-ft>
273       <span-m type="double">40000</span-m>
274     </layer>
275     <layer n="2">
276       <coverage type="string">clear</coverage>
277       <elevation-ft type="double">-9999</elevation-ft>
278       <span-m type="double">40000</span-m>
279     </layer>
280     <layer n="3">
281       <coverage type="double">clear</coverage>
282       <elevation-ft type="double">-9999</elevation-ft>
283       <span-m type="double">40000</span-m>
284     </layer>
285     <layer n="4">
286       <coverage type="string">clear</coverage>
287       <elevation-ft type="double">-9999</elevation-ft>
288       <span-m type="double">40000</span-m>
289     </layer>
290   </clouds>
291
292   <cloudlayers include="cloudlayers.xml"/>
293
294   <realwx>
295     <!-- Spawn a metar loader for each metar node 
296          index 0..9 are reserved for internal (hardcoded) loaders
297          and will be set from FlightGear's subsystems.
298          Index 10..n may be used by user defined systems
299          
300          To retrieve a METAR in /environment/metar[10], write
301          the station id (e.g. KSFO) to 
302          /enviornment/metar[10]/station-id and set 
303          /environment/metar[10]/time-to-live to zero
304          Wait for 
305          /environment/metar[10]/valid to become true.
306     -->
307     <metar n="0" type="string">/environment/metar[0]</metar>
308     <!-- nearest airport -->
309     <metar n="1" type="string">/environment/metar[1]</metar>
310     <!-- NAV1 -->
311     <metar n="2" type="string">/environment/metar[2]</metar>
312     <!-- NAV2 -->
313     <metar n="3" type="string">/environment/metar[3]</metar>
314     <!-- VHF-COMM1 -->
315     <metar n="4" type="string">/environment/metar[4]</metar>
316     <!-- VHF-COMM2 -->
317     <metar n="5" type="string">/environment/metar[5]</metar>
318     <!-- UHF-COMM1 -->
319     <metar n="6" type="string">/environment/metar[6]</metar>
320     <!-- UHF-COMM2 -->
321
322     <!-- User defined queries -->
323     <metar n="10" type="string">/environment/metar[10]</metar>
324     <metar n="11" type="string">/environment/metar[11]</metar>
325
326     <!-- use NOAA for METAR (no aloft data) -->
327     <data-source type="string">noaa</data-source>
328
329     <!-- use http://www.navlost.eu/ for METAR and aloft data -->
330     <!-- data-source>nwx<data-source -->
331     <enabled type="bool">true</enabled>
332   </realwx>
333
334   <metar>
335     <!-- create a low-level cloud layer for fog/mist/haze from metar -->
336     <set-ground-cloud-layer type="bool">true</set-ground-cloud-layer>
337   </metar>
338
339   <turbulence>
340     <!-- the turbulence/magnitude-norm interpolator applies this value
341           as an exponent to the magnitude -->
342     <sensitivity type="double">2</sensitivity>
343   </turbulence>
344
345   <params>
346     <!-- 
347       valid values for jsbsim-turbulence-model:
348       ttNone, ttStandard, ttBerndt, ttCulp, ttMilspec, ttTustin
349     -->
350     <jsbsim-turbulence-model type="string" userarchive="y">ttMilspec</jsbsim-turbulence-model>
351     <metar-max-age-min type="long">240</metar-max-age-min>
352     <metar-updates-environment type="bool">true</metar-updates-environment>
353     <metar-updates-winds-aloft type="bool">true</metar-updates-winds-aloft>
354     <metar-updates-snow-level type="bool" userarchive="y">true</metar-updates-snow-level>
355     <use-external-precipitation-level type="bool">false</use-external-precipitation-level>
356     <external-precipitation-level-m type="double">0</external-precipitation-level-m>
357     <control-fdm-atmosphere type="bool">true</control-fdm-atmosphere>
358     <contrail-altitude type="double">30000</contrail-altitude>
359     <!-- definitions for the metar generated fog/mist/haze layer -->
360     <fog-mist-haze-layer>
361       <offset-from-station-elevation-ft type="double">-200</offset-from-station-elevation-ft>
362       <visibility-above-layer-m type="double">20000</visibility-above-layer-m>
363
364       <fog-thickness-ft type="double">500</fog-thickness-ft>
365       <fog-2dlayer-alpha type="double">1.0</fog-2dlayer-alpha>
366       <fog-2dlayer-coverage type="string">overcast</fog-2dlayer-coverage>
367       <fog-bc-2dlayer-coverage type="string">broken</fog-bc-2dlayer-coverage>
368       <fog-shallow-thickness-ft type="double">30</fog-shallow-thickness-ft>
369
370       <mist-thickness-ft type="double">2000</mist-thickness-ft>
371       <mist-2dlayer-alpha type="double">0.8</mist-2dlayer-alpha>
372       <mist-2dlayer-coverage type="string">overcast</mist-2dlayer-coverage>
373
374       <haze-thickness-ft type="double">2000</haze-thickness-ft>
375       <haze-2dlayer-alpha type="double">0.6</haze-2dlayer-alpha>
376       <haze-2dlayer-coverage type="string">overcast</haze-2dlayer-coverage>
377     </fog-mist-haze-layer>
378   </params>
379
380
381   <wildfire>
382     <enabled type="bool" userarchive="y">false</enabled>
383     <share-events type="bool" userarchive="y">false</share-events>
384     <save-on-exit type="bool" userarchive="y">false</save-on-exit>
385     <restore-on-startup type="bool" userarchive="y">false</restore-on-startup>
386     <fire-on-crash type="bool" userarchive="y">false</fire-on-crash>
387     <report-score type="bool" userarchive="y">false</report-score>
388     <data type="string"/>
389   </wildfire>
390   
391   <snow-level-m type="double">3200.0</snow-level-m>
392
393   <!-- create on instance of the terrains-sampler but start disabled -->
394   <terrain>
395     <area>
396       <enabled type="bool">false</enabled>
397     </area>
398   </terrain>
399
400   <sea>
401     <config>
402       <wind-filter-time type="double">0.05</wind-filter-time>
403     </config>
404     <color_r type="double" userarchive="n">0.148</color_r>
405     <color_g type="double" userarchive="n">0.27</color_g>
406     <color_b type="double" userarchive="n">0.3</color_b>
407    <surface>
408     <ice-cover> 0.0</ice-cover>
409    </surface>
410   </sea>
411
412   <!-- definitions for the scattering skydome shader -->
413   <ground-visibility-m type="double" userarchive="n">16000.0</ground-visibility-m>
414   <air-pollution-norm type="double" userarchive="y">0.0</air-pollution-norm>
415   <ground-haze-thickness-m type="double" userarchive="n">2000.0</ground-haze-thickness-m>
416   <terminator-relative-position-m type="double" userarchive="n">1000000.0</terminator-relative-position-m>
417   <mean-terrain-elevation-m type="double" userarchive="n">0.0</mean-terrain-elevation-m>
418   <fog-structure type="double" userarchive="y">0.0</fog-structure>
419   <cloud-self-shading type="double" userarchive="n">1.0</cloud-self-shading>
420   <moonlight type="double" userarchive="n">0.0</moonlight>
421   <!-- definitions for the environment at surface interface -->
422   <surface>
423     <scattering type="double" userarchive="n">0.7</scattering>
424     <dust-cover-factor type="double" userarchive="y">0.0</dust-cover-factor>
425     <lichen-cover-factor type="double" userarchive="y">0.0</lichen-cover-factor>
426     <wetness type="double" userarchive="y">0.0</wetness>
427     <snow-thickness-factor type="double" userarchive="y">1.0</snow-thickness-factor>
428   </surface>
429 </PropertyList>