php-metar-decoder


Decode any raw METAR:


METAR


Valid format
 object(DecodedMetar) 
[
"raw_metar" => string(46) "EETU 271450Z 05005KT 9000 OVC006 01/M00 Q1019 "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "EETU"
"day" => int(27)
"time" => string(9) "14:50 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
"Visibility:ndv" => bool(false)
]

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

"air_temperature" => object(Value)
[
"value" => int(1)
"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(0)
"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(1019)
"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
]