Professional information about meteorological conditions in the world
OGIMET
Advertisements

OGIMET

Versión española

METEOSAT
Latest meteosat / metar
Meteosat-9/metar
Meteosat-9 VIS-IR loop

WEATHER MODEL FORECAST
GFS world weather mapsGFS Maps

METEOGRAMS
Gramet aero
Gramet meteo

INDEXES
Query about indexes

UNDECODED REPORTS
Synop reports
Synop by countries
Latest synops
Metar/Taf reports
Latest metar
Latest Taf
Upper air soundings
Soundings by countries

TEXT INFORMATION
Daily summaries
Country summaries
Weather ranking
GSOD Daily summaries
CLIMAT monthly summaries

GRAPHIC INFORMATION
Synops over countries
World synop navigation
Metars over countries
World metar navigation
World GSOD data navigation

OTHER
Database state
Credits
License
Ogimet news
WMO Resolution 40
Documentation
Contact

mysql.png
debian.gif
Opensuse_1.gif
php.png

getmetar

getmetar is a small cgi binary which returns a file with undecoded metar reports in CSV format.

The columns, separated by comma, are

ICAOIND,YEAR,MONTH,DAY,HOUR,MIN,REPORT 
 
The URL of CGI is
 
http://www.ogimet.com/cgi-bin/getmetar
 
It need some arguments ala GET style
 
Dates of begin and end of time interval have the format YYYYMMDDHHmm

Where

YYYY Year (four digits)
MM (month, two digits)
DD (day, two digits)
HH (hour , two digits)
mm (minute, two digits)
 
Arguments 
 
begin=YYYYMMDDHHmm  (mandatory)
end=YYYYMMDDHHmm  (default is current time)
lang=eng (english, optional)
header=yes (include a first line with the name of columns)
state=Begin_of_state_string 
icao=First_letters_of_ICAO_index

If no 'state' nor 'icao' it is supossed all the world.

Better some examples:

1) All metar since 201003280000 till current day for all iaco indexes for  
countries beginning with 'Per' i.e. Peru. 
 
  http://www.ogimet.com/cgi-bin/getmetar?begin=201003280000&state=Per&lang=eng
 
2) All metar for january 1 2010 from PerĂº
 
  http://www.ogimet.com/cgi-bin/getmetar?begin=201001010000&end=201001012359&state=Per
 
3) All metars for icao index begining with 'SPZ'  since 200501010000 till 200801010000 
 
  http://www.ogimet.com/cgi-bin/getmetar?icao=SPZ&begin=200501010000&end=200801010000

4) All metars since  201106080000 till 201106080200 

  http://www.ogimet.com/cgi-bin/getmetar?begin=201106080000&end=201106080200


There are some limits:
  -No more than 100000 METAR per petition. :-)
 
You can use binaries like curl in your scripts to get your data in a easy way. As example:
 
  curl "http://www.ogimet.com/cgi-bin/getmetar?icao=SPZO&begin=200912010000&end=200912040000" -o "my_file"
 
will create the file 'my_file' with report metar from SPZO in the inidcated dates.
 
You can get the same using wget 

wget "http://www.ogimet.com/cgi-bin/getmetar?icao=SPZO&begin=200912010000&end=200912040000" -O "my_file"

Enjoy! And please, don't abuse.
DISCLAIMER: The information in these pages must be taken as merely informative. The authors are not responsible about errors, delays or failures in the data or when interpreting the data. No any critical mission should use this data.
© Copyright G. Ballester Valor 2005-2012
.