getWind
getWind -- return wind information out of METAR or TAF Code
Description
Array getWind (string $METAR_TAF);
getWind returns an array with 10 elements and the following indexes:
- "deg" contains the wind direction in degrees (0 - 360°)
- "dir" contains the wind direction using wind rose terms e.g. "N", "SW" or "ENE"
To have this is ideally to choose a wind grafic out of the weatherpics directory
(use strtolower first and then add ".gif").
- "wkt" contains the speed of the wind measured in Knots
- "wkm" contains the speed of the wind measured in kilometers per hour
- "wms" contains the speed of the wind measured in meters per second
- "wbf" contains wind force measured in beaufort
- "gkt" contains the speed of the wind-gusts if existing measured in Knots
- "gkm" contains the speed of the wind-gusts if existing measured in kilometers per hour
- "gms" contains the speed of the wind-gusts if existing measured in meters per second
- "gbf" contains the force of the gusts measured in beaufort
If there are no wind-gusts the values for e.g. "wkt" and "gkt" will be the same.
If there is no wind information indicated in a METAR or a TAF code (what hopefully never will be)
or the METAR or TAF code is incorrect getWind will return false.