php-taf-decoder


Decode any raw TAF:


TAF


Valid format
 object(DecodedTaf) 
[
"raw_taf" => string(86) "TAF KJFK 201410Z 2014/2212 03017G28KT P6SM VCFGRA BKN020 OVC080 TX22/2014Z TN14/2204Z "
"decoding_exceptions" => array(0)
"type" => string(3) "TAF"
"icao" => string(4) "KJFK"
"day" => int(20)
"time" => string(9) "14:10 UTC"
"forecast_period" => object(ForecastPeriod)
[
"ForecastPeriod:from_day" => int(20)
"ForecastPeriod:from_hour" => int(14)
"ForecastPeriod:to_day" => int(22)
"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" => object(Value)
"SurfaceWind:direction_variations" => NULL
"SurfaceWind:evolutions" => array(0)
]

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

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

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

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

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

]