PHP Class Horde_Service_Weather_Parser_Metar, horde

Responsible for parsing encoded METAR 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
Exibir arquivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_hours array Map of hours descriptors.

Protected Methods

Method Description
_getMetarCodes ( ) : array Return the array of regexps used to parse METAR text. We don't define this in the declaration since we unset the entries as they are parsed.
_getRemarks ( ) : array Return the array of regexps used to parse METAR remarks section.
_parse ( array $data ) : array Parses METAR

Method Details

_getMetarCodes() protected method

Return the array of regexps used to parse METAR text. We don't define this in the declaration since we unset the entries as they are parsed.
protected _getMetarCodes ( ) : array
return array

_getRemarks() protected method

Return the array of regexps used to parse METAR remarks section.
protected _getRemarks ( ) : array
return array

_parse() protected method

Parses METAR
protected _parse ( array $data ) : array
$data array An array of METAR data lines.
return array An array of weather data. Possible keys include: - station: - dataRaw: - update: - updateRaw: - wind: - windDegrees: - windDirection: - windGust: - windVariability: - visibility: - visQualifier: - clouds: - amount - height - type - temperature - dewpoint - humidity - felttemperature - pressure - trend - type - from - to - at - remark - autostation - seapressure - presschg - snowdepth - snowequiv - cloudtypes - sunduration - 1hrtemp - 1hrdew - 6hmaxtemp - 6hmintemp - 24hmaxtemp - 24hmintemp - 3hpresstrend - nospeci - sensors - maintain - precipitation - amount - hours

Property Details

$_hours protected_oe property

Map of hours descriptors.
protected array $_hours
return array