A python package for parsing metar & taf raw text
Project description
pymetaf
This is a python package to parse raw METAR and TAF report text.
Installation
- Clone this repository and run
$ python setup.py install
in your terminal. - Use Pip
$ pip install pymetaf
Usage
>>> from pymetaf import parse_text
>>> text = 'METAR ZYAS 250500Z 21009G14MPS 6000 NSC 18/08 Q1018 NOSIG'
>>> parse_text(text, 2021, 5)
{'kind': 'METAR',
'icao': 'ZYAS',
'datetime': '2021-05-25T05:00:00+00:00',
'wind_direction': 210,
'wind_direction_units': 'degree',
'wind_speed': 9,
'wind_speed_units': 'm/s',
'gust': 14,
'wind_direction_range': None,
'cavok': False,
'visibility': 6000,
'visibility_units': 'm',
'temperature': 18,
'dew_temperature': 8,
'temperature_units': 'degree C',
'qnh': 1018,
'qnh_units': 'hPa',
'cloud': [{'cloud_mask': 0,
'cloud_height': None,
'cloud_height_units': 'm',
'cloud_type': None}],
'weather': ['Clear Sky'],
'auto': False}
Enjoy it!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymetaf-1.0.3.tar.gz
(9.8 kB
view details)
Built Distribution
pymetaf-1.0.3-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file pymetaf-1.0.3.tar.gz
.
File metadata
- Download URL: pymetaf-1.0.3.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 623ba0fc1aecdf296d7cbb335dab7d6d32d327cb1a0b4a5b0ee83f88780a90e7 |
|
MD5 | 9fa9d8f357083939c5562e94051461b4 |
|
BLAKE2b-256 | beee18205f9199427eefac1f8c56879af090313121a514e48e295b7a0ce16313 |
File details
Details for the file pymetaf-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: pymetaf-1.0.3-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cf01e732da1dd7d0b237022deb773a7e2600147e1e6f79cfabffe92a691e1e9 |
|
MD5 | 2679b49224c70c05963583dd9ba4d771 |
|
BLAKE2b-256 | e223e8512356a99546cd8ef15b740dcbbe99b8400a431712496826076377a95e |