GRIB1 library CGRIBEX¶
GRIBEX is an interface for encoding and decoding WMO FM-92 GRIB edition 1 messages and some ancillary subroutines for controlling printing and debugging. The GRIBEX software was developed at the European Centre for Medium-range Weather Forecasts (ECMWF) and is part of the EMOS library. EMOS is mostly written in Fortran. Therefore it has only a Fortran interface.
CGRIBEX is a lightweight version of GRIBEX written in ANSI C with a portable Fortran interface. For best compatibility some of the C sources were converted from the Fortran GRIBEX version.
A description of the gribex and pbio interface can be found in:
CGRIBEX is not a full implementation of the EMOS GRIBEX version. Limitation of this library:
Supported coding option (HOPER): 'C', 'D', 'J' and 'R'.
- regular and quasi-regular (reduced) latitude/longitude grids
- regular and quasi-regular (reduced) gaussian grids
- spherical harmonic fields
- triangular grids