php-metar-decoder


Decode any raw METAR:


METAR


Valid format
 object(DecodedMetar) 
[
"raw_metar" => string(66) "CYFB 271515Z 32017KT 3SM DRSN BKN040 M29/M34 A2957 RMK SC7 SLP019 "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "CYFB"
"day" => int(27)
"time" => string(9) "15:15 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(1)
[
0 => object(WeatherPhenomenon)
]

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

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

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

"pressure" => object(Value)
[
"value" => float(29.57)
"unit" => string(4) "inHg"
]

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