...
CMAKE_INSTALL_PREFIX | where you want to install your ecCodes | /usr/local |
CMAKE_BUILD_TYPE | to select the type of compilation:
| RelWithDebInfo |
ENABLE_NETCDF | For the grib_to_netcdf convert tool | AUTO |
ENABLE_JPG | Enable JPEG2000 support. This option should look for Jasper or OpenJPG | AUTO |
ENABLE_PNG | Enable PNG support for decoding/encoding | OFF |
ENABLE_PYTHON | Offers the Python interface to the package | AUTO |
ENABLE_FORTRAN | Offers the Fortran interface to the package | AUTO |
ENABLE_GRIB_THREADS | Enable POSIX threads | OFF |
cmake options | doc | default |
---|
The C and Fortran compilers are chosen by CMake. (This can be overridden by setting the environment variables CC and FC to the preferred compiler). Further the variables CMAKE_C_FLAGS or CMAKE_Fortran_FLAGS can be used to set compiler flags for optimisation or debugging.
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.
Code Block |
---|
> tar -xzf eccodes-x.y.z-Source.tar.gz > mkdir build ; cd build > cmake ../eccodes-x.y.z –DCMAKE_INSTALL_PREFIX=/path/to/where/you/install/eccodes ../eccodes-x.y.z-Source ... > make > make test > make install |
Note that for the testing step ("make test") you need to be connected to the internet 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)