Versions Compared

Key

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

...

Warning

In the Fortran interface, for GRIB keys whose value is MISSING, GRIB-API returns -1 whereas ecCodes returns the constant CODES_MISSING_LONG.
It is best to check whether a GRIB key is missing by using the function "grib_is_missing" rather than comparing the result of grib_get with -1. See example here.

An example of such a key is "Ni" (the number of points per latitude) for Reduced Gaussian Grids. Please check your code and make sure you are not comparing with -1.

Warning

In the Fortran interface of GRIB-API, the function grib_keys_iterator_next returns 1 if the next iterator exists and 0 if there are no more elements. But in ecCodes this function returns CODES_SUCCESS (=GRIB_SUCCESS) if the next iterator exists and an integer value if there are no more elements.

See example here

Warning

We have also removed the Fortran 77 library (libgrib_api_f77.a) and the API examples.

...

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:

Tool nameComments
grib_cmpSuperseded by grib_compare
grib_debugSuperseded by "grib_dump -D"
grib_convertSuperseded by grib_filter
grib_distanceThis tool was experimental
grib_errorThis tool was experimental
grib_keysThis tool was experimental
grib_add

This tool was experimental

grib_corruption_checkThis tool was experimental
pointsThis tool was experimental
grib_packingThis tool was experimental
grib_momentsThis tool was experimental
big2gribexThis tool was experimental
grib_list_keysThis tool was experimental
grib_repairThis tool was experimental
grib_to_jsonThis tool was experimental
gg_sub_area_checkThis tool was experimental

Also note that the tool grib_info is now renamed to codes_info.

...