php-metar-decoder


Decode any raw METAR:


METAR


Valid format
 object(DecodedMetar) 
[
"raw_metar" => string(66) "EHAM 152125Z 32005KT 300V360 9999 FEW017 BKN020 15/11 Q1020 NOSIG "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "EHAM"
"day" => int(15)
"time" => string(9) "21:25 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" => array(2)
]

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

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

"air_temperature" => object(Value)
[
"value" => int(15)
"unit" => string(5) "deg C"
"speed_conversion_map" => array(4)
"distance_conversion_map" => array(4)
"pressure_conversion_map" => array(3)
]

"dew_point_temperature" => object(Value)
[
"value" => int(11)
"unit" => string(5) "deg C"
"speed_conversion_map" => array(4)
"distance_conversion_map" => array(4)
"pressure_conversion_map" => array(3)
]

"pressure" => object(Value)
[
"value" => int(1020)
"unit" => string(3) "hPa"
"speed_conversion_map" => array(4)
"distance_conversion_map" => array(4)
"pressure_conversion_map" => array(3)
]

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