php-metar-decoder


Decode any raw METAR:


METAR


Invalid format:
  • Invalid values for day/hour/minute, on chunk "321400Z 27006KT 8000 TS VCSH BKN020 FEW030CB BKN080 25/20"
  • Atmospheric pressure not found, on chunk ""
 object(DecodedMetar) 
[
"raw_metar" => string(63) "SBGU 321400Z 27006KT 8000 TS VCSH BKN020 FEW030CB BKN080 25/20 "
"decoding_exceptions" => array(0)
"type" => NULL
"icao" => string(4) "SBGU"
"day" => NULL
"time" => NULL
"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" => NULL
"recent_weather" => NULL
"windshear_all_runways" => NULL
"windshear_runways" => NULL
]