Project

General

Profile

Windows Systems

Cygwin - reommended

Binary Release

CDO can be used within cygwin, which is a Unix-like environment for Windows.
The pre-built cygwin binary needs the following runtine dependencies:
  • gcc
  • gcc-gfortran
  • ssl + ssh
  • curl
  • zlib
  • netcdf-devel
  • udunits-devel
  • proj-devel

Since nether eccodes nor its predecessor grib_api are available as cygwin packages, the corresponding dll is shipped with the binary release:

Archive:  cdo-1.9.6rc3-cygwin64-Win10.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
121720062  2018-11-19 10:53   cdo.exe
 11243875  2018-11-19 11:40   cygeccodes.dll

Please copy both files into a directory that's listed in the $PATH variable or create a new one and add it to $PATH. Based on this installation you can make use of the scripting language bindings for CDO within cygwin

Unfortunately the GRIB1/2 library eccodes does not work with only the dll file - You need the download and extract the source-tarball from here and set the environment variable ECCODES_DEFINITION_PATH to the definitions subdirectory of the extracted source code with its full absolute path. Don't forget to make that persistent by adding tto your favourite shell config file (.bashrc, .zshrc, .cshrc or so).

Custom build - not recommended, but possible

If you prefer compilation, you can use cygwins package manager to install the latest version of netcdf, hdf5 and all the other dependencies. Most of them are already avaialble.

If you installed libraries via cygwins setup.exe, just configure cdo like this:

./configure --with-netcdf --with-hdf5 
and the other options you might need.

If manual installation does not fear you and you have to stick to Windows, we recommend using cygwin for getting the maximum functionality out of CDO.

Windows 10

In the current windows 10 version(s) Microsoft included an Ubuntu 16.04 LTS embedded Linux. Older versions needed an additional activation of the developer mode. This environment offers a clean integration with the windows file systems and and the opportunity to install CDO via the native package manager of Ubuntu:
sudo apt-get install cdo
The current CDO-version in this Ubuntu release is 1.7.2, which might be sufficient for your purpose. If you need a more recent version, you can
  • update the complete ubuntu system - not sure if this is possible on a Windows10 host system.
  • install cdo manually like on any POSIX system

Native support

A native build for windows systems is not part of our plans for the future since most of our target systems are POSIX-compatible and with cygwin and the built-in Ubuntu system there are two platforms available with very good window integration.