Difference between revisions of "How to read GRIB files!"

From mn/geo/geoit
Jump to: navigation, search
(Created page with "Back to ECMWF overview[http://muspelheim.nilu.no/w/index.php/ECMWF] ''Updated by nik: 12 March 2013'' GRIB decoding ''GRIB = GRIdded Binary is a compressed format for meter...")
 
m
Line 2: Line 2:
  
  
''Updated by nik: 12 March 2013''
+
''Updated by nik: 13 March 2013''
  
  
GRIB decoding
+
'''GRIB'''
  
 +
GRIdded Binary is a compressed format for meterological data used since 1985.
  
''GRIB = GRIdded Binary is a compressed format for meterological data used since 1985.''
+
Requires software for encoding and decoding
  
  
'''GRIB1:'''
 
  
  
 +
== GRIB1 ==
  
'''GRIB2:'''
+
Currently used for ECMWF operational ''surface'' and ''pressure level'' data.
was introduced for ECMWF operational model level data on 18 May 2011.  
+
 
 +
 
 +
 
 +
== GRIB2 ==
 +
was introduced for ECMWF operational ''model level'' data on '''18 May 2011'''.  
  
 
Migration from GRIB1 to GRIB2 was necessary because GRIB1 data could only hold 126 model levels.
 
Migration from GRIB1 to GRIB2 was necessary because GRIB1 data could only hold 126 model levels.
Line 35: Line 40:
  
  
'''To decode GRIB data there are software available from ECMWF. '''
+
== GRIB-decoding ==
 +
 +
To decode GRIB data there are software available from ECMWF.
  
This software is is the GRIB_API (Application Programming Interface) library.
+
This software is is the '''GRIB_API (Application Programming Interface)''' library.
  
 
This software hides the binary layer and uses a key/value approach to access the information.
 
This software hides the binary layer and uses a key/value approach to access the information.

Revision as of 13:38, 13 March 2013

Back to ECMWF overview[1]


Updated by nik: 13 March 2013


GRIB

GRIdded Binary is a compressed format for meterological data used since 1985.

Requires software for encoding and decoding



GRIB1

Currently used for ECMWF operational surface and pressure level data.


GRIB2

was introduced for ECMWF operational model level data on 18 May 2011.

Migration from GRIB1 to GRIB2 was necessary because GRIB1 data could only hold 126 model levels.

Number of model levels in the high resolution forecast will be increased from 91 to 137 in June 2013.

Pressure levels will still have GRIB1 but eventually this will also be changed.

"Old" model data will still have GRIB1 format in the archive.

GRIB2 also allows more flexibility and is more complex than GRIB1.

For example.

GRIB1: Lon/lat is in milli-degree
GRIB2: Lon/lat is in micro-degree


GRIB-decoding

To decode GRIB data there are software available from ECMWF.

This software is is the GRIB_API (Application Programming Interface) library.

This software hides the binary layer and uses a key/value approach to access the information.

GRIB1 and GRIB2 uses the same function call.

There are both command line tools, and Fortran90/C/Python interfaces.