Package details
Metar is a python package for interpreting METAR and SPECI coded
weather reports.
METAR and SPECI are coded aviation weather reports. The official coding
schemes are specified in the World Meteorological Organization (WMO) Manual
on Codes, vol I.1, Part A (WMO-306 I.i.A). US conventions for METAR/SPECI
reports vary in a number of ways from the international standard, and are
described in chapter 12 of the Federal Meteorological Handbook No.1.
(FMH-1 1995), issued by NOAA. See
This module handles all main-body groups in reports that follow the
WMO spec or the US conventions, except for trend groups. The most
useful remark groups defined in the US spec are parsed, as well,
such as the cumulative precipitation, min/max temperature, peak
wind and sea-level pressure groups. No other regional conventions
are formally supported, but a large number of variant formats found
in international reports are accepted."""
Current and historical METAR data can be obtained from various places.
The current METAR report for a given airport is available at the URL
.TXT>
where is the four-letter ICAO airport station code. The
accompanying script get_report.py will download and decode the
current report for any specified station.
The METAR reports for all stations (worldwide) for any "cycle" (i.e., hour)
in the last 24 hours are available in a single file at the URL
Z.TXT>
where is a 2-digit cycle number (e.g., "00", "05" or "23").
The WMO and US code specifications (and a file listing the ICAO
station codes) are available from my website at
http://homepage.mac.com/wtpollard/Software/FileSharing4.html.
Author: Tom Pollard
This package has no releases.