GSB 7.1 Standardlösung

CDO Installation (Unix / LINUX)

Requirements for processing CM SAF’s HDF5-files
If you want to use CDO for conversion of CM SAF files, you need to build it with support of some additional libraries (netcdf, hdf, proj, szib, zlib). We recommend to use at least version 1.3.1 of CDO.

On our systems, we have successfully build the package based on the following components:

  • cdo-1.3.1.tar.gz
  • zlib-1.2.3.tar.gz (needed to build the HDF5-library)
  • szip-2.1.tar.gz (needed to build the HDF5-library)
  • hdf5-1.6.6.tar.gz (needed to import HDF5 files)
  • netcdf-3.6.3.tar.gz (needed to read and write netcdf-files)
  • proj-4.6.1.tar.gz (needed to perform spatial operations based on the projection parameters in the metadata of the CM SAF product).

For an example of the installation procedure, see description at the end of this document.

The latest version of cdo is available under https://code.zmaw.de/projects/cdo/files.

Detailed description of installation steps.
Here it is assumed that none of the required components is installed on your system and that you want to do the whole installation in your private directory (i.e. without root privileges on your system). The description refers to an ubuntu/x86 system.

# Required packages:

# cdo-1.3.1.tar.gz
# netcdf-3.6.3.tar.gz
# hdf5-1.6.6.tar.gz
# zlib-1.2.3.tar.gz
# szip-2.1.tar.gz
# proj-4.6.1.tar.gz

INSTALL_DIR=/home/your_user_name/soft
mkdir $INSTALL_DIR

# Install netcdf:
tar xzf netcdf-3.6.3.tar.gz
cd netcdf-3.6.3/
./configure --prefix=$INSTALL_DIR --disable-f77
make
make install
cd ..

# Install szip:
tar xzf szip-2.1.tar.gz
cd szip-2.1/
./configure --prefix=$INSTALL_DIR CFLAGS="-lm"
make
make check
make install
cd ..

# Install zlib:
tar xzf zlib-1.2.3.tar.gz
cd zlib-1.2.3/
./configure --shared --prefix=$INSTALL_DIR
make
make install
cd ..

# Install hdf5 (with zlib and szip support):
tar xzf hdf5-1.6.6.tar.gz
cd hdf5-1.6.6/
./configure --with-zlib=$INSTALL_DIR --with-szlib=$INSTALL_DIR --prefix=$INSTALL_DIR
make
make install
cd ..

# Install proj
tar xzf proj-4.6.1.tar.gz
cd proj-4.6.1/
./configure --prefix=$INSTALL_DIR
make
make install
cd ..

# Install cdo (with hdf5 and netcdf support):
tar xzf cdo-1.3.1.tar.gz
cd cdo-1.3.1/
./configure --with-hdf5=$INSTALL_DIR --with-szlib=$INSTALL_DIR --with-netcdf=$INSTALL_DIR --with-proj=$INSTALL_DIR --with-zlib=$INSTALL_DIR --prefix=$INSTALL_DIR CC=gcc CFLAGS="-g -D_REENTRANT -O2"
make
make install
cd ..

# Perhaps you need to adapt some of your path-variables:
export LD_LIBRARY_PATH=$INSTALL_DIR/lib
export PATH=$INSTALL_DIR/bin:$PATH

Jan2014

Use of cookies

Cookies help us to provide our services. By using our website you agree that we can use cookies. Read more about our Privacy Policy and visit the following link: Privacy Policy

OK