PHP Класс 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:
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$_hours |
array |
Map of hours descriptors. |
|
Защищенные методы
Метод |
Описание |
|
_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 |
|
Описание методов
_parse()
защищенный Метод
protected _parse ( array $data ) : array |
$data |
array |
An array of METAR data lines. |
Результат |
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 |
Описание свойств
$_hours защищенное свойство
Map of hours descriptors.
protected array $_hours |
Результат |
array |
|