php-taf-decoder


Decode any raw TAF:


TAF


Valid format
 object(DecodedTaf) 
[
"raw_taf" => string(73) "TAF TAF LEMD 080500Z 0806/0912 23010KT 9999 SCT025 TX12/0816Z TN04/0807Z "
"decoding_exceptions" => array(0)
"type" => string(3) "TAF"
"icao" => string(4) "LEMD"
"day" => int(8)
"time" => string(9) "05:00 UTC"
"forecast_period" => object(ForecastPeriod)
[
"ForecastPeriod:from_day" => int(8)
"ForecastPeriod:from_hour" => int(6)
"ForecastPeriod:to_day" => int(9)
"ForecastPeriod:to_hour" => int(12)
]

"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
"SurfaceWind:evolutions" => array(0)
]

"visibility" => object(Visibility)
[
"Visibility:visibility" => object(Value)
"Visibility:greater" => bool(false)
"Visibility:evolutions" => array(0)
]

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

"min_temperature" => object(Temperature)
[
"Temperature:type" => string(2) "TN"
"Temperature:temperature" => object(Value)
"Temperature:day" => int(8)
"Temperature:hour" => int(7)
"Temperature:evolutions" => array(0)
]

"max_temperature" => object(Temperature)
[
"Temperature:type" => string(2) "TX"
"Temperature:temperature" => object(Value)
"Temperature:day" => int(8)
"Temperature:hour" => int(16)
"Temperature:evolutions" => array(0)
]

]