PHP Class Horde_Service_Weather_Parser_Taf, horde

Responsible for parsing encoded TAF data. Parsing code adapted from PEAR's Services_Weather_Metar class. Original phpdoc attributes as follows:
Author: Alexander Wirtz ([email protected])
Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Service_Weather_Parser_Base
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Methods

Method Description
_getTafCodes ( ) : array Return a fresh set of the regexps needed for parsing the TAF data.
_parse ( array $data ) : array Parses TAF data.

Method Details

_getTafCodes() protected method

Return a fresh set of the regexps needed for parsing the TAF data.
protected _getTafCodes ( ) : array
return array

_parse() protected method

TAF KLGA 271734Z 271818 11007KT P6SM -RA SCT020 BKN200 FM2300 14007KT P6SM SCT030 BKN150 FM0400 VRB03KT P6SM SCT035 OVC080 PROB30 0509 P6SM -RA BKN035 FM0900 VRB03KT 6SM -RA BR SCT015 OVC035 TEMPO 1215 5SM -RA BR SCT009 BKN015 BECMG 1517 16007KT P6SM NSW SCT015 BKN070
protected _parse ( array $data ) : array
$data array The TAF encoded weather data, spilt on line endings.
return array An array of forecast data. Keys include: - station: (string) The station identifier. - dataRaw: (string) The raw TAF data. - update: (timestamp) Timestamp of last update. - validFrom: (Horde_Date) The valid FROM time. - validTo: (Horde_Date) The valid TO time. - time: (array) An array of Horde_Service_Weather_Period objects for each available valid time provided by the TAF report.