понеділок, 31 грудня 2012 р.

Console Weather Channel

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.

Raw METAR is the most popular format in the world for the transmission of weather data. It is highly standardized through International Civil Aviation Organization (ICAO), which allows it to be understood throughout most of the world.

Easiest way to read METAR data is connect to http://weather.noaa.gov/pub/data/observations/metar/stations/icao_airport_code.TXT

where icao_airport_code — ICAO airport code (UKKK for Kyiv International airport)

Example:
$ curl http://weather.noaa.gov/pub/data/observations/metar/stations/UKKK.TXT 
2012/12/31 11:00 
UKKK 311100Z 26005MPS 9000 NSC 00/M03 Q1019 26190060 NOSIG 





METAR can be read and decoded by metar console utility (should be installed separately, sudo apt-get install metar for Ubuntu)

usage: metar [options] ICAO_airport_code 
Options:

  • -d decode metar 
  • -h show help 
  • -v be verbose


Example:

$ metar -d ukkk
UKKK 311130Z 27005MPS CAVOK 01/M03 Q1019 26190060 NOSIG
Station       : UKKK
Day           : 31
Time          : 11:30 UTC
Wind direction: 0 (N)
Wind speed    : 0
Wind gust     : 0
Visibility    : 26190060 M
Temperature   : 1 C
Dewpoint      : -3 C
Pressure      : 1019 hPa
Clouds        :
Phenomena     : Ceiling and visibility OK




Example of ICAO airport code:

  • UKKK - Kyiv International Airport (Zhuliany) 
  • UKBB - Boryspil International Airport 
  • UKLL — Lviv Danylo Halytskyi International Airport 
  • UKHH — Kharkiv International Airport 
  • UKOO — Odessa International Airport 
  • UKLN — Chernivtsi International Airport 
  • LFPG — Paris Charles de Gaulle Airport 
  • UHWW — Vladivostok International Airport 
  • UUEE — Moscow Sheremetyevo International Airport 
  • UUDD — Moscow Domodedovo Airport 
  • UUWW — Vnukovo International Airport

1 коментар:

  1. If you are using noaa.gov, I think better to get already decoded version. Like - http://weather.noaa.gov/pub/data/observations/metar/decoded/UKKK.TXT

    ВідповістиВидалити