Project

General

Profile

Installation

The installation of CDO with CMOR is complex because a number of packages used by both, CDO and
CMOR, need to be combined. It is highly recommended to use the operator on the DKRZ system (mistral)
if possible where additional user support can be given.

A simplification of the installation, e.g. by a conda package, is in progress.

DKRZ system

The most recent tag of CDO including cdo cmor operator is linked on mistral in
/work/bm0021/cdo_incl_cmor/cdo_recent_cmor2 for CDOs installed with CMOR2 and
/work/bm0021/cdo_incl_cmor/cdo_recent_cmor3 for CDOs installed with CMOR3.
In /work/bm0021/cdo_incl_cmor, a script for the installation in a user-defined directory is given.

Home computer

You need to install packages which should be included like: zlib-1.2.8, hdf5-1.8.13, expat-2.2.0, udunits-2.2.20,
uuid-1.6.2, netcdf-4.4.1.1, jasper-1.900.1, grib_api-1.14.4-Source according to the following template:

#!/bin/sh
#Choose your installation directory HOME:
HOME=/home/
cd zlib-1.2.8/
./configure --prefix=${HOME}
make; make check; make install
cd ../

Consider that CMOR requires the udunits and uuid packages:

cd udunits-2.2.20/
CPPFLAGS=-I${HOME}include LDFLAGS=-L${HOME}lib
./configure --prefix=${HOME} CFLAGS=-fPIC
make; make check; make install
cd ..
cd uuid-1.6.2/
./configure --prefix=${HOME} CFLAGS=-fPIC
make; make check; make install
cd ..

The final Configurations of CMOR and CDO:

cd cmor2_v292/
CFLAGS=-fPIC CPPFLAGS=-I${HOME}include LDFLAGS=-L${HOME}lib
./configure --prefix=${HOME}local
--with-udunits2=${HOME} --with-uuid=${HOME} --with-netcdf=${HOME}
make
make install
cd ..

cd cdo-1.8.2
CPPFLAGS="-I${HOME}include -I${HOME}include/cdTime" LDFLAGS="-L${HOME}lib" 
./configure --prefix=${HOME}
--with-cmor=${HOME}local LIBS="-L${HOME}/lib -lnetcdf -ludunits2 -luuid" 
--with-netcdf=${HOME} --with-jasper=${HOME} --with-hdf5=${HOME}
--with-grib_api=${HOME} --with-udunits2=${HOME}
make -j8
cd ..