How To Install eccodes on CentOS 7

In this tutorial we learn how to install eccodes on CentOS 7. eccodes is WMO data format decoding and encoding

Introduction

In this tutorial we learn how to install eccodes on CentOS 7.

What is eccodes

ecCodes is a package developed by ECMWF which provides an application programming interface and a set of tools for decoding and encoding messages in the following formats * WMO FM-92 GRIB edition 1 and edition 2 * WMO FM-94 BUFR edition 3 and edition 4 * WMO GTS abbreviated header (only decoding). A useful set of command line tools provide quick access to the messages. C, and Fortran 90 interfaces provide access to the main ecCodes functionality. ecCodes is an evolution of GRIB-API. It is designed to provide the user with a simple set of functions to access data from several formats with a key/value approach. For GRIB encoding and decoding, the GRIB-API functionality is provided fully in ecCodes with only minor interface and behaviour changes. Interfaces for C, and Fortran 90 are all maintained as in GRIB-API. However, the GRIB-API Fortran 77 interface is no longer available. In addition, a new set of functions with the prefix “codes_” is provided to operate on all the supported message formats. These functions have the same interface and behaviour as the “grib_” functions. A selection of GRIB-API tools has been included in ecCodes (ecCodes GRIB tools), while new tools are available for the BUFR (ecCodes BUFR tools) and GTS formats. The new tools have been developed to be as similar as possible to the existing GRIB-API tools maintaining, where possible, the same options and behaviour. A significant difference compared with GRIB-API tools is that bufr_dump produces output in JSON format suitable for many web based applications.

We can use yum or dnf to install eccodes on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install eccodes.

Install eccodes on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install eccodes using yum by running the following command:

sudo yum -y install eccodes

Install eccodes on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install eccodes using dnf by running the following command:

sudo dnf -y install eccodes

How To Uninstall eccodes on CentOS 7

To uninstall only the eccodes package we can use the following command:

sudo dnf remove eccodes

References

Summary

In this tutorial we learn how to install eccodes on CentOS 7 using yum and dnf.