php-taf-decoder


Decode any raw TAF:


TAF


Invalid format:
  • Bad format for surface wind information, on chunk "CNL"
  • Bad format for visibility information, on chunk "CNL"
  • Bad format for clouds information, on chunk "CNL"
 object(DecodedTaf) 
[
"raw_taf" => string(35) "TAF TAF LIRU 032244Z 0318/0206 CNL "
"decoding_exceptions" => array(0)
"type" => string(3) "TAF"
"icao" => string(4) "LIRU"
"day" => int(3)
"time" => string(9) "22:44 UTC"
"forecast_period" => object(ForecastPeriod)
[
"ForecastPeriod:from_day" => int(3)
"ForecastPeriod:from_hour" => int(18)
"ForecastPeriod:to_day" => int(2)
"ForecastPeriod:to_hour" => int(6)
]

"surface_wind" => NULL
"visibility" => NULL
"cavok" => bool(false)
"weather_phenomenons" => array(0)
"clouds" => array(0)
"min_temperature" => NULL
"max_temperature" => NULL
]