Versions Compared

Key

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

Introduction

The ECMWF grib_api software library provides a set of functions/subroutines and command line tools for encoding and decoding WMO FM-92 GRIB edition 1 and edition 2 messages. The OpenIFS model uses GRIB for its input and output files.

The grib_api software library must be build and installed before you try to build OpenIFS on your system. Although you may have a version of grib_api on your system already that would most likely work, it is recommended that you build and install grib-api yourself to ensure the version of the software provided on the OpenIFS ftp site. This version will have been tested with OpenIFS and known to worksame compiler and compiler version is used. Otherwise you may see error messages about conflicting module versions when compiling OpenIFS.

For more information about grib_api , and to download it please visit the grib_api website.

Column
width50px

 

 

 
Column
width280px
Panel
bgColorwhite
titleBGColorlightlightgrey
titleOn this page

Table of Contents
maxLevel2
stylesquare
printablefalse

...

Download grib_api

In this example, we assume you have created a directory called $HOME/ecmwf in which you will download and compile grib_api.

...

If you haven't already obtained the grib_api package, get it from the OpenIFS ftp site. The userid for ftp is 'openifs'. If you need the password, please email: openifs-support@ecmwf.int. Please note that currently we require a signed license before password access can be granted to the ftp site, though grib_api is freely available from the ECMWF website.

...

grib-api web site. We recommend downloading the latest version. Some of the instructions for options below may differ with the very latest versions.

Unpacking grib_api

To unpack the software:

...

Some compilers will link to the shared version by default if both are found (e.g. the GNU compiler). To ensure the correct version of grib_api is found (in case several are available on your system), OpenIFS explicitly lists the static library in the FCM configuration files. Alternately, if you prefer to use the shared library, you must ensure that your LD_LIBRARY_PATH variable is set so that 1.9.18 version compiled here is found first. Alternately, the option  --disable-shared stops the shared libraries from being generated, only the static libraries are built and will be linked. However, this may prevent other grib api tools working and is not generally recommended. 

Choice of compiler and options

...