Advanced weather: Difference between revisions

No edit summary
Line 101: Line 101:


== Creating custom Weather Tiles ==
== Creating custom Weather Tiles ==
Hard-customizing a weather scenario for your needs is fairly easy. If you look into Nasal/local-weather/weather_tiles.nas you can for instance find the function set_high_pressure_tile() That has lines var spread = 10.0 + 4.0 * rand(); var D = T - spread; which set spread and dewpoint D, so if you want a certain cloud base, you just set spread to your desired value such that the cloudbase will later be spread * 400 later. The exact cloud base will always depend a bit on the topology, outcrops of the terrain tend to push it up under some conditions.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/35259165/
  |title  =  <nowiki> Re: [Flightgear-devel] Autostart advanced weather with METAR from
commandline </nowiki>
  |author =  <nowiki> Thorsten Renk </nowiki>
  |date  =  Aug 3rd, 2016
  |added  =  Aug 3rd, 2016
  |script_version = 0.40
  }}</ref>
If you have a function (data table,...) providing the wind vector w =(wx, wy, wz) as a function of position and time, i.e. w (x,y,z,t), is it possible to make that work in FG, yes that is possible.
If you have a function (data table,...) providing the wind vector w =(wx, wy, wz) as a function of position and time, i.e. w (x,y,z,t), is it possible to make that work in FG, yes that is possible.