Info | ||
---|---|---|
| ||
From version 2.30.0 onwards (see November synchronised release), Magics will be built by default with ECC instead of GRIB-API. |
Overview
From the 2.22.0 version, Magics is using CMake for its compilation and installation. This is a first step towards an homogenisation of the installation procedures for all ECMWF packages.
...
Compilers | |||||||
---|---|---|---|---|---|---|---|
C++ | http://gcc.gnu.org/ | ||||||
Fortran | http://gcc.gnu.org/fortran/ | If Fortran or BUFR support needed | |||||
Utilities | |||||||
make | http://www.gnu.org/software/make/ | ||||||
cmake | https://cmake.org | > v2.8.4 | |||||
Python Support | |||||||
swigpython | http://www.swigpython.org/ | to generate the python interface | python | http://www.python.org/ | versions 2.7 and 3.x supported | ||
python-numpy | http://www.numpy.org/ | pip install numpy | |||||
python-jinja2 | pip install jinja2 | ||||||
Third party libraries | |||||||
proj | http://trac.osgeo.org/proj/ | Proj4 to handle projections | |||||
boost | http://www.boost.org/ (Requires 1.5) | used for coastlines | |||||
netcdf | http://www.unidata.ucar.edu/software/netcdf/ | if netcdf support needed Please note: You also need to install the legacy C++ interface and HDF5 | |||||
pango | http://www.pango.org/ | if png/pdf support needed | |||||
expat | http://expat.sourceforge.net/ | for XML parsing | |||||
ECMWF libraries | |||||||
ecCodes | ECC | Enables GRIB and BUFR support | |||||
odb-api | ODB-API Home | if ODB support needed | emoslib | EMOS | if BUFR support needed |
Magics specific CMake options
After changing into the build Magics directory, the user has to run CMake with his/her own options. The command gives feedback on what requirements are fulfilled and what software is still required. Table below gives an overview of the different options of configure. The default (without any options) will compile a share library only and install it in /usr/local/.
cmake options | doc | default |
---|---|---|
ENABLE_GRIB | enable grib support | on |
ENABLE_ECCODES | Use ecCodes for grib support Setting this variable to OFF will will build Magics with grib_api | on|
ECCODES_PATH | where to find eccode ( if non-standard installation ) | |
ENABLE_NETCDF | enable netcdf support | on |
NETCDF_PATH | where to find netcdf ( if non-standard installation ) | |
ENABLE_ODB | enable odb support | off |
ODB_API_PATH | where to find odb ( if non-standard installation ) | |
ENABLE_BUFR | enable bufr support The bufr support is done through emoslib . | off |
EMOS_PATH | Where to find emos lib ( if non-standard installation ) | |
ENABLE_PYTHON | enable python interface | auto |
ENABLE_FORTRAN | enable fortran interface | on |
ENABLE_METVIEW | enable metview support(and Qt support) | off |
ENABLE_CAIRO | enable Cairo support | on |
BOOST_ROOT | where to find boost ( if non-standard installation ) | |
PROJ4_PATH | where to find proj4 ( if non-standard installation ) |
...