Up |
Give / provide a METAR to the scol object. You can change (or update) as much METAR as you want.
I recommend to use _scienceWeatherMetarDatasSetFromUrl with the default server and the FROM_NOAA flag (you choose an icao code at your convenience) and next set the downloaded METAR with this function. You'll find an example on _scienceWeatherMetarDatasSetFromUrl page.
fun [ObjScienceWeatherMetar S] ObjScienceWeatherMetar
Return : ObjScienceWeatherMetar the same object or nil if error.
The NOAA (National Oceanic and Atmospheric Administration, an US department)
provides METARs on its ftp server :
ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/ but you can use an other source. In this last case, don't use the flag FROM_NOAA.
To search an ICAO code (airports, stations, ...) you could search in http://weather.rap.ucar.edu/surface/stations.txt or use your favorite search web engine.