digplanet beta 1: Athena
Share digplanet:


Applied sciences






















GRIB (GRIdded Binary or General Regularly-distributed Information in Binary form[1]) is a concise data format commonly used in meteorology to store historical and forecast weather data. It is standardized by the World Meteorological Organization's Commission for Basic Systems, known under number GRIB FM 92-IX, described in WMO Manual on Codes No.306. Currently there are three versions of GRIB. Version 0 was used to a limited extent by projects such as TOGA, and is no longer in operational use. The first edition (current sub-version is 2) is used operationally worldwide by most meteorological centers, for Numerical Weather Prediction output (NWP). A newer generation has been introduced, known as GRIB second edition, and data is slowly changing over to this format. Some of the second-generation GRIB are used for derived product distributed in Eumetcast of Meteosat Second Generation. Another example is the NAM (North American Mesoscale) model.


GRIB files are a collection of self-contained records of 2D data, and the individual records stand alone as meaningful data, with no references to other records or to an overall schema. So collections of GRIB records can be appended to each other or the records separated.

Each GRIB record has two components - the part that describes the record (the header), and the actual binary data itself. The data in GRIB-1 are typically converted to integers using scale and offset, and then bit-packed. GRIB-2 also has the possibility of compression.

GRIB History[edit]

GRIB superseded the Aeronautical Data Format (ADF).

The World Meteorological Organization (WMO) Commission for Basic Systems (CBS) met in 1985 to create the GRIB (GRIdded Binary) format. The WGDM in February 1994, after major changes, approved revision 1 of the GRIB format. GRIB Edition 2 format was approved in 2003 at Geneva.

Problems with GRIB [2][edit]

No way in GRIB to describe a collection of GRIB records

  • Each record is independent, with no way to reference the GRIB writer's intended schema
  • No foolproof way to combine records into the multidimensional arrays from which they were derived.

The use of external tables to describe the meaning of the data.

  • No authoritative place for centers to publish their local tables.
  • Inconsistent and incorrect methods of versioning local tables.
  • No machine-readable versions of the WMO tables (now available for GRIB-2, but not GRIB-1)

GRIB 1 Header[edit]

There are 2 parts of the GRIB 1 header - one mandatory (Product Definition Section - PDS) and one optional (Grid Description Section - GDS). The PDS describes who created the data (the research/operation center), the involved numerical model/process - can be NWP or GCM, the data that is actually stored (such as wind, temperature, ozone concentration etc.), units of the data (meters, pressure etc.), vertical system of the data (constant height, constant pressure, constant potential temperature), and the time stamp.

If a description of the spatial organization of the data is needed, the GDS must be included as well. This information includes spectral (harmonics of divergence and vorticity) vs gridded data (Gaussian, X-Y grid), horizontal resolution, and the location of the origin.



A number of application software packages have been written which make use of GRIB files. These range from command line utilities to graphical visualisation packages.

  • ATMOGRAPH ModelVis Commercial numerical weather model data visualization software capable of decoding and displaying both GRIB 1 and GRIB 2 data formats
  • ArcGIS Market leading GIS software
  • WGRIB Command line based program to manipulate, inventory and decode GRIB files
  • GrADS, free command line based desktop application that directly handles GRIB1 and GRIB2 files [3]
  • Picogrib GRIB 1 C-language (FORTRAN callable) free decoding package compatible to some extent with ECMWF GRIBEX routine
  • NCEP codes free software (C and FORTRAN library) for decoding and encoding data in GRIB 1 format
  • NCEP codes free software (C and FORTRAN library) for decoding and encoding data in GRIB 2 format (some template only)
  • JGrib - Jgrib is a free library for reading GRIB files in Java.
  • Meteosatlib - Meteosatlib is a free software C++ library and set of tools to convert satellite images between various formats; it can read and write GRIB data, and its GRIB encoding/decoding library can be used standalone.
  • The NCAR Command Language can be used to read, analyze and visualize GRIB data, as well convert it to other gridded data formats.
  • PyNIO is a Python programming language module that allows read and/or write access to a variety of data formats using an interface modelled on netCDF.
  • degrib (AKA NDFD GRIB2 Decoder) is a reader for GRIB 1 and GRIB 2 files.
  • wgrib2 is a reader for GRIB 2 files.
  • GRIB API is an API developed at ECMWF to decode and encode GRIB edition 1 and 2 data. A useful set of command line tools is also included. ECMWF also offers the plotting package Magics and the Metview workstation/batch system to handle/visualise GRIB files.
  • Ugrib – Ugrib is a no cost graphical GRIB viewer designed for reading GRIB 1 files. The website GRIB.US also aims to provide education on the prudent and safe use of GRIB data for forecasting weather
  • Expedition – Expedition is the Sailing navigation and weather application. Grib display and download from many sources is free.
  • SmartMet - SmartMet is a Windows tool that reads, writes and visualises GRIB data
  • Xconv/Convsh – Xconv is a graphical tool for displaying and converting gridded data, and is available for most operating systems. Convsh is the command-line equivalent.
  • The NetCDF-Java Common Data Model is a Java library that can read GRIB 1 and GRIB 2 files.
  • zyGrib a graphical software for Linux, Mac OS X and Windows (GPL3, Qt) to download and display GRIB 1 files.
  • GDAL, a popular open source reading and writing library for geospatial data
  • PyGrib A python language extension module which allows one to read and write GRIB 1 and GRIB 2 formats.
  • PolarView A navigation application that includes a GRIB viewer, supporting both GRIB 1 and GRIB 2. PolarView includes a GRIB download service for GFS (wind/atmospheric pressure), NWW3 (wave height/direction) and RTOFS (Atlantic currents) data from NOAA. Available for Linux, Mac and Windows.
  • OpenCPN Open Source Chart Plotter / Marine Navigator. For day to day cruising or advance route planning. (NOTE: GRIB support is available since version 1.3.5 beta)
  • CDO (Climate Data Operators) is an analysis tool for geoscientific data with GRIB support
  • IDV is a meteorologically oriented, platform-independent application for visualization and analysis of GRIB1, GRIB2 and NetCDF files.
  • SoftwareOnBoard A marine navigation application for Windows that includes GRIB overlays on the chart.
  • GribAE A freeware Windows interface for WGRIB.
  • qtVlm a free software for linux, windows and mac, based on zyGrib but with an interface with GPS and routing functions (+ an interface with virtual sailing game VLM)

Mobile Apps[edit]


Several iOS Apps support the GRIB format, including:


Several Android Apps support the GRIB format, including:

See also[edit]


External links[edit]

Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/GRIB — Please support Wikipedia.
This page uses Creative Commons Licensed content from Wikipedia. A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.

80343 news items


Fri, 29 Apr 2016 01:37:30 -0700

Ķēniņam sezona noslēgusies, un hokejists varētu papildināt Latvijas valstsvienības kandidātu loku, lai gatavotos pasaules čempionātam, kas Krievijā sāksies pēc nedēļas. «Pirms «play-off» mačiem Ķēniņš man apstiprināja, ka viņš grib spēlēt izlasē ...


Fri, 29 Apr 2016 08:33:45 -0700

Vācijas Bavārijas federālās zemes parlaments ceturtdien debatē par nacistiskās Vācijas vadoņa Ādolfa Hitlera opusa "Mein Kampf" ("Mana cīņa") jaunā akadēmiskā izdevuma iekļaušanu skolu mācību programmās, ziņo LETA-DPA. 2000 lappušu biezais ...


Thu, 28 Apr 2016 09:07:32 -0700

Pirmie no Grieķijas patvērumu saņēmušie bēgļi grib mācīties un strādāt Latvijā. Foto: LETA. Divas ģimenes, kuras pārvietotas no Grieķijas un kurām Latvijā piešķirts alternatīvais statuss, plāno palikt dzīvot šajā valstī - meklēt šeit darbu dažādās ...


Thu, 28 Apr 2016 08:33:45 -0700

Starptautiskās Futbola federāciju asociācijas (FIFA) prezidents Džanni Infantīno trešdien paziņoja, ka vēlas sarīkot draudzības spēli starp Ziemeļkorejas un Dienvidkorejas futbola izlasēm, lai tādā veidā mazinātu naidīgumu abu valstu starpā, ziņo LETA-AFP.

Neatkarīgā Rīta Avīze

Neatkarīgā Rīta Avīze
Wed, 27 Apr 2016 00:34:26 -0700

Aizsardzības ministrija (AM) sagatavojusi grozījumus Krimināllikumā, kas paredzēs kriminālatbildību par normatīvajos aktos noteiktā aizlieguma dienēt ārvalsts bruņotajos spēkos un dažādās militārajās vai drošības struktūrās pārkāpšanu. Izņēmums gan ...


Mon, 25 Apr 2016 09:42:21 -0700

Premjerministra Māra Kučinska (ZZS) valdība paredzējusi veikt pasākumu kompleksu, kas vērsts uz Latvijas interešu aizstāvēšanu un skaidrošanu visos formātos un institūcijās, lai nodrošinātu Latvijas tiesības tikai brīvprātīgi uzņemt patvēruma ...

Latvijas Avīze

Latvijas Avīze
Mon, 25 Apr 2016 06:55:12 -0700

Indijas kultūras ministrija paziņojusi, ka darīs visu iespējamo, lai atgūtu 19. gadsimtā uz Angliju aizceļojušo briljantu “Koh-i-Noor” jeb “Gaismas kalns” – vienu no pasaules lielākajiem, slavenākajiem un leģendārākajiem dārgakmeņiem pasaulē. Šobrīd ...

Latvijas Avīze

Latvijas Avīze
Wed, 20 Apr 2016 06:18:35 -0700

Pašvaldību domas par izglītības un zinātnes ministra Kārļa Šadurska (V) priekšlikumu pirmsskolas pedagogu algas celt uz skolēnu brīvpusdienu rēķina, ēdināšanas funkciju nododot pašvaldībām, dalās – dažas tam pilnībā piekrīt, kamēr citas pārmet “slēptu ...

Oops, we seem to be having trouble contacting Twitter

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!

Searchlight Group

Digplanet also receives support from Searchlight Group. Visit Searchlight