Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

GRIB-API is entirely included in ecCodes without any major change to its Fortran 90, Python and C interfaces.  However there are some minor changes and rationalisations described below.

API Changes

Warning

The following functions have been removed:
grib_handle_new_from_template: This was already deprecated in GRIB-API and has been replaced by grib_handle_new_from_samples.
grib_context_new: This was experimental. One should use the default context

Warning

In the Fortran interface, for keys whose value is MISSING, GRIB-API would return -1 whereas ecCodes returns the constant CODES_MISSING_LONG.

It is best to check whether a key is missing by using the function "grib_is_missing" rather than comparing the result of grib_get with a number.

An example of such a key is "Ni" (the number of points per latitude) for Reduced Gaussian Grids. Please check your code for comparing key values with -1!

Warning

In ecCodes we have also removed the Fortran 77 library (libgrib_api_f77.a) and the API examples.

Tool Changes

Some of the GRIB-API command line tools are not included in ecCodes because they have been superseded by other tools or they were experimental and are not needed anymore. In the following table the deprecated tools are listed:

...