GRIB


GRIB 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 is used operationally worldwide by most meteorological centers, for Numerical Weather Prediction output.
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 model.

Format

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, 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

GRIB superseded the Aeronautical Data Format.
The World Meteorological Organization Commission for Basic Systems met in 1985 to create the GRIB format.
The Working Group on Data Management 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 Caron, John. https://wayback.archive-it.org/all/20120714010331/http://www.unidata.ucar.edu/staff/caron/papers/GRIBarchivals.pdf On the suitability of BUFR and GRIB for archiving data

There is no way in GRIB to describe a collection of GRIB records
There are 2 parts of the GRIB 1 header - one mandatory and one optional. The PDS describes who created the data, the involved numerical model / process, the data that is actually stored, units of the data, vertical system of the data, 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 vs gridded data, horizontal resolution, and the location of the origin.

Software

Applications

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.

iOS

Several iOS Apps support the GRIB format, including:
Several Android Apps support the GRIB format, including: