php-metar-decoder


Decode any raw METAR:


METAR


Valid format
 object(DecodedMetar) 
[
"raw_metar" => string(69) "SBGU 271400Z 27006KT 8000 TS VCSH BKN020 FEW030CB BKN080 25/20 Q1017 "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "SBGU"
"day" => int(27)
"time" => string(9) "14:00 UTC"
"status" => NULL
"surface_wind" => object(SurfaceWind)
[
"SurfaceWind:mean_direction" => object(Value)
"SurfaceWind:variable_direction" => bool(false)
"SurfaceWind:mean_speed" => object(Value)
"SurfaceWind:speed_variations" => NULL
"SurfaceWind:direction_variations" => NULL
]

"visibility" => object(Visibility)
[
"Visibility:visibility" => object(Value)
"Visibility:minimum" => NULL
"Visibility:minimum_direction" => NULL
]

"cavok" => bool(false)
"runways_visual_range" => NULL
"present_weather" => array(2)
[
0 => object(WeatherPhenomenon)
1 => object(WeatherPhenomenon)
]

"clouds" => array(3)
[
0 => object(CloudLayer)
1 => object(CloudLayer)
2 => object(CloudLayer)
]

"air_temperature" => object(Value)
[
"value" => int(25)
"unit" => string(5) "deg C"
]

"dew_point_temperature" => object(Value)
[
"value" => int(20)
"unit" => string(5) "deg C"
]

"pressure" => object(Value)
[
"value" => int(1017)
"unit" => string(3) "hPa"
]

"recent_weather" => NULL
"windshear_all_runways" => NULL
"windshear_runways" => NULL
]