Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleMagics is now using ecCodes

From the version 2.30.0 ( November synchronised release) , Magics will by default use ecCodes .. We are in the process of updating this page..

Overview

From the 2.22.0 version,  Magics will be is  using CMake for its compilation and installation. This is a first step towards an homogenisation of the installation procedures for all ECMWF packages. 

...

The following table lists the dependency Magics requires to be build from source. Please note, if you install this package from source you also might have to install the respective "-devel" packages of dependencies. 

Compilers
C++http://gcc.gnu.org/ 
Fortranhttp://gcc.gnu.org/fortran/If Fortran or BUFR support needed
Utilities

make

http://www.gnu.org/software/make/ 
cmakehttps://cmake.org> v2.8.4
Python Support
swighttp://www.swig.org/to generate the python interface
pythonhttp://www.python.org/ 
python-numpyhttp://www.numpy.org/ 
Third party libraries
projhttp://trac.osgeo.org/proj/Proj4 to handle projections
boosthttp://www.boost.org/ (Requires 1.5)used for coastlines
netcdfhttp://www.unidata.ucar.edu/software/netcdf/

if netcdf support needed

Please note: You also need to install the legacy C++ interface and HDF5

pangohttp://www.pango.org/if png/pdf support needed
expathttp://expat.sourceforge.net/for XML parsing
ECMWF libraries
grib-apiGRIB-API Home (Requires 1.9)if GRIB support needed
odb-apiODB-API Homeif ODB support needed
emoslibEMOSif 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 optionsdocdefault

ENABLE_GRIB

enable grib supporton
GRIB_API_PATHwhere to find grib-api ( if non-standard installation  ) 
ENABLE_NETCDFenable netcdf supporton
NETCDF_PATHwhere to find netcdf  ( if non-standard installation  ) 
ENABLE_ODBenable odb supportoff
ODB_API_PATHwhere to find odb ( if non-standard installation  ) 
ENABLE_BUFR

enable bufr support

The bufr support is done through emoslib .

off
EMOS_PATHWhere to find emos lib  ( if non-standard installation  ) 
ENABLE_PYTHONenable python interfaceauto
ENABLE_FORTRANenable fortran interfaceon
ENABLE_METVIEWenable metview support(and Qt support)off
ENABLE_CAIROenable cairo supporton
BOOST_ROOTwhere to find boost ( if non-standard installation  ) 
PROJ4_PATHwhere to find proj4 ( if non-standard installation  ) 

To make sure that a feature is really enabled, you will have to specify with the option ex: -DENABLE_GRIB=ON. In that case CMake will fail if the grib support can not be enabled.

...