> I like the idea of being able to pass in arbitrary METAR strings. That > would allow a person to easily fly with interesting weather copied from > some other location or time. Or even we could setup challenges like fly > this approach with this weather, etc. > > Keep in mind that we estimate cloud tops for METAR weather, so whatever we > do shouldn't prevent someone from customizing cloud top altitudes and wind > layers from within FlightGear or through the property interface.
Keeping that in mind, I just started working on the following idea: Step #. - move the hard coded metar strings for scenarios Thunderstorm and Fair weather to preferences.xml and just keep two hard coded scenarios: METAR (aka real-weather-fetch) and none. - provide scenarios in preferences.xml like Thunderstorm, Fair weather, Minimum VFR, CAT I minimum, CAT II minimum etc. - change the weather_scenario dialog to read the combo box options from preferences.xml Step #2 Add an option --metar=<arbitrary handcoded METAR> - this implies --disable-real-weather-fetch and set scenario to METAR - make the metar string editable in the weather_scenario dialog This option needs some changes in the logic of real-weather-fetch and scenario usage. Ideas and comments are welcome. If I play in someone elses sandbox here, please complain! Torsten Example of preferences.xml extension: <environment> <weather-scenarios> <scenario> <name>Fair weather</name> <metar>15003KT 12SM SCT041 FEW200 20/08 Q1015 NOSIG</metar> </scenario> <scenario> <name>Thunderstorm</name> <metar>15012KT 08SM TSRA SCT040CB BKN070 20/12 Q0995</metar> <layer n="0"> <coverage>scattered</coverage> <elevation-ft>7000</elevation-ft> <type>ns</type> </layer> </scenario> <scenario> <name>CAT I minimum</name> <metar>15010KT 0800 -RA BKN002 OVC400 08/06 Q0990</metar> </scenario> <scenario> <name>CAT II minimum</name> <metar>15005KT 0400 -RA BKN001 OVC200 08/06 Q0990</metar> </scenario> <scenario> <name>CAT IIIa minimum</name> <metar>VRB02KT 0250 -RADZ OVC001 OVC800 08/08 Q0990</metar> </scenario> </weather-scenarios> <weather-scenario>Fair weather</weather-scenario> ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel