|where you want to install your ecCodes
to select the type of compilation:
|Select the type of library built:
|Flags for the C++ Compiler
|Flags for the Fortran Compiler
|For the grib_to_netcdf conversion tool
Enable JPEG2000 support. This option should look for JasPer or OpenJPEG.
|Enable PNG support for decoding/encoding
|Enable Adaptive Entropy Coding (AEC) for GRIB decoding/encoding (CCSDS)
Note: This option is deprecated and was removed in Q1 2023.
The Python2 interface to the package.
|Offers the Fortran 90 interface to the package
|Enable POSIX threads
|Enable OpenMP threads
|See Memory based access to definition/sample files
|Enable extended regression testing (which requires data downloads)
Note: The compilers can also be overridden by setting the environment variables CXX and FC.
Note: To see the full output from the compilation, you can use:
Quick installation guide
Here is an example of a list of commands you could use to install ecCodes. It is assumed “>” is the shell prompt.
First of all get the tarball "eccodes-x.y.z-Source.tar.gz" from our Releases page. Then:
> tar -xzf eccodes-x.y.z-Source.tar.gz > mkdir build ; cd build > cmake -DCMAKE_INSTALL_PREFIX=/path/to/where/you/install/eccodes ../eccodes-x.y.z-Source ... > make > ctest > make install
It is recommended that you always build in a clean directory and also install into a clean directory.
By default the ctest step above (running the tests) does NOT require any data to be downloaded and only runs basic sanity tests. However if you wish to exercise more of the functionality of ecCodes, you are advised to configure the build with:
> cmake ... -DENABLE_EXTRA_TESTS=ON
In this mode the tests will take longer and you need to be connected to the internet (and set the relevant "http_proxy" environment variable if you must use a proxy) so data files can be downloaded for the tests. You can however download all the data files in one go (See the data tarball link at the top of the Releases page)