GRIB edition 1 and GRIB edition 2 (GRIdded Binary or rather General Regularly-distributed Information in Binary form) - referred to as GRIB1 and GRIB2 from now on - are WMO (World Meteorological Organization) binary standard formats defined by the WMO Commission for Basic Systems under GRIB FM 92 for the international exchange of meteorological gridded data. Since the implementation of IFS cycle 37r2 on the 18 May 2011, ECMWF has produced its operational data, as well as a variety of reanalysis data, in a mixture of GRIB1 and GRIB2. Both formats are table based binary data, machine independent, and they need specific software for the data processing.
The meta-data are encoded in the form of integer values whose corresponding meaning is defined in code tables published by the WMO.
For GRIB2, these code tables, as well as templates which describe the layouts of GRIB2 messages, are extended, or new proposed parameters / templates are added on a biennial basis in a fast-track procedure by the WMO Task Team on Table Driven Code Forms (TT-TDCF).
GRIB edition 0 was introduced by WMO in 1985, GRIB1 in 1990 and GRIB2 in 2001.
Edition 1 was removed from the WMO Manual on Codes, Volume I.2 (WMO-No. 306) in 2016. Since then, GRIB2 is the official WMO format, and there is an initiative for GRIB edition 3 (GRIB3).
A GRIB1 message consists of 6 and a GRIB2 message of 9 sections. The following figure illustrates the layout of a GRIB1 and GRIB2 message.
GRIB messages are record based.
This means that each message contains a single parameter on a single level, for a single time instance (point in time or processed over a time interval), a single ensemble member, etc, and includes its own complete set of meta-data. GRIB2 offers the possibility to code multi-field messages as well, but this feature is not used at ECMWF, as the infrastructure is designed for the usage of single field records, and the saving by using multi-field messages is only small. Multi-field messages are not further discussed. The single messages are concatenated into a sequence of messages.
Each message is sub-divided into sections with the structure shown in the figure depending whether it is edition 1 or 2.
Templates are used in GRIB2 to further adapt the layout of the messages for specific products.
A template defines the keys and order of bytes. Some of these keys refer to entries in the WMO code tables represented as integer values in the binary file.
Section 3 (Grid Definition), section 4 (Product Definition) and section 5 (Data representation) are all template based. This makes GRIB2 much more flexible than GRIB1.
Templates are also published by WMO in the same way as the parameter code tables. New parameters and templates can be proposed to WMO on a biennial basis. Meta-data, which are centre specific can be added to the section 2, which is designated for a local use and the only section which does not have to be included in the message.
To see how templates change and extend the content of a GRIB2 message, see GRIB edition 2 template example for Product Definition Section.
Mailing List Users who wish to receive regular updates about the progress in the migration to GRIB2 can subscribe to the mailing list mtg2@lists.ecmwf.int . To subscribe, send an email to sympa@lists.ecmwf.int with the subject "SUBSCRIBE mtg2@lists.ecmwf.int " . |