18 Aug 2009 à 11:24 par isontheline
Introduction
What is METAR
METAR (Aviation Routine Weather Report; thought to be a contraction of the French words MÉTéorologique ["Weather"] Aviation Régulière ["Routine"]) is a format for reporting weather information. A METAR weather report is predominantly used by pilots in fulfillment of a part of a pre-flight weather briefing, and by meteorologists, who use aggregated METAR information to assist in weather forecasting.METAR Data Access
In order to share METAR observations more easily, we provide current and recent METAR reports from around the world in GZIP compressed files and via a WebService. Compressed files are available through Itimeteo at http://data.itimeteo.com/metar
Note :
Uncompressed and original NWS METAR observations files are avaible through anonymous FTP at ftp://tgftp.nws.noaa.gov/data/observations/metar
Important :
METAR observations available from Itimeteo are 7x smaller than files from NWS, but files are identical after decompression.Individual Reports
Itimeteo Metar Web Service
http://api.itimeteo.fr/metar.ims
In order to run this Web Service, you can use this sample IKey :
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
NWS
In order to display the most recent METAR report from NWS, you can use the form at http://weather.noaa.gov/weather/metar.shtml
or read METAR file from ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/LFML.TXT
where LFML is the OACI code you want to get.Cycle Files
Get files
Hourly files containing METAR reports available from Itimeteo are stored at http://data.itimeteo.com/metar
Files are named hhZ.gz where hh is the corresponding cycle hour of METAR file reports. In each hhZ.gz file is stored a text file named hhZ.txt containing all cycle hour METAR reports.
Note :
Files are updated all twenty minutes : hh10Z, hh30Z and hh50Z. Reports may be duplicated within the files and multiple reports received from a station may appear in a file. Each METAR reports file contains reports taken between (hh-1)45Z to hh44Z for the hh cycle.File Format
Each cycle file contains multiple reports in the following format:| 1. | YYYY/MM/DD HH:MM |
| 2. | METAR report |
| 3. | |
| 4. | YYYY/MM/DD HH:MM |
| 5. | METAR report |
| 6. | |
| 7. | ... |
The end of each report is delimited by a blank line.