php-metar-decoder


Decode any raw METAR:


METAR


Invalid format:
  • Atmospheric pressure not found, on chunk "13/// Q1008 RMK"
 object(DecodedMetar) 
[
"raw_metar" => string(78) "LSZL 131550Z AUTO 09005KT 060V120 9999NDV -SHRA SCT052 BKN067 13/// Q1008 RMK "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "LSZL"
"day" => int(13)
"time" => string(9) "15:50 UTC"
"status" => string(4) "AUTO"
"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(true)
]

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

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

"air_temperature" => NULL
"dew_point_temperature" => NULL
"pressure" => object(Value)
[
"value" => int(1008)
"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
]