Project

General

Profile

CDO installation process in windows

Added by Matteo Pecchi over 4 years ago

Hello,
I'm a totally beginner with CDO software, I would like to install it in my windows machine (windows10).
Is there any document that explains well the procedure to follow? I found some material looking on internet but it is difficult to understand for me.

Thank you


Replies (12)

RE: CDO installation process in windows - Added by Ralf Mueller over 4 years ago

hi Matteo!

you can have a look at win32. Basically you have two options

  • cygwin
  • Linux subsystem of Windows10 (called WSL)

IMO the easiest way is the using WSL, because you can install CDO in binary form with the package manager.

hth
ralf

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

thanks you for the answer.
I chose to install cygwin and I think I did it. And now what? how do I install cdo?

RE: CDO installation process in windows - Added by Ralf Mueller over 4 years ago

If you follow the link above, you find a list of cygwin packages that need to be installed before you can make use of the pre-build CDO binary from here

For grib2-suport you need to have some parts of the eccodes-package, but that's explained on that wiki page,too.

cheers
ralf

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

I downloaded the file from the link it provided. I downloaded this version "cdo-1.9.9rc4.tar" and I am trying to open it in cygwin. Am I doing well? Could you give me more information?

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

I had not noticed this file https://code.mpimet.mpg.de/projects/cdo/wiki/Win32 sorry.
In summary I followed these steps:
First I install cygwin on the pc according to standard option
Second following the win32 file, I change working directory to the one containing cdo.exe file ( I created this path manually) Is it the correct procedure?
I have an error message (an error system) where it says it cannot find the file cygnetcdf-13.dll and to try reinstalling the software.
where do you think the error is?

RE: CDO installation process in windows - Added by Ralf Mueller over 4 years ago

  1. after installing the cygwin base system, you need to install the additional packages listen in Win32.
  2. then you extract the CDO zip file and put the content and open a cygwin terminal
  3. in that terminal you copy the extracted file (cdo.exe and the dll) to '/usr/local/bin' - are you familiar with the unix command line? Usually the windows drive 'C' is accessible under cygwin in /cygdrive/c/
  4. now you should be able to execute 'cdo' in that cygwin terminal

please note: In case you want to use CDO, you always have to work in a cygwin terminal. It will not work from the PowerShell or the good old 'cmd' terminal

cheers
ralf

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

thanks for your reply and sorry. I don't have any experience with linux command line.

However I think I'm on the right way, I'm positive.
I ran this command "cd C:/cygdrive/c/Users/FBOTTALICO/Downloads/cdo_file" cdo_file is the folder where I have both cdo.exe and .dll file

I use this line for both cdo and .dll file "cp cdo.exe C:/cygwin64/bin" to copy the file from cdo_file folder to bin folder.

I try to run cdo.exe file and I have this output "No operator given! usage : cdo [Options] Operator1 [-Operator2 [-OperatorN]]"
I also attach a screen of my monitor

fig1.png (92.7 KB) fig1.png

RE: CDO installation process in windows - Added by Ralf Mueller over 4 years ago

Copying both files to 'C:/cygwin64/bin' is a good idea. With that you should be able to call CDO from any other directory in a cygwin terminal.

Try

cdo -V

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

thank you,
the output is in the figure

fig2.png (37.8 KB) fig2.png

RE: CDO installation process in windows - Added by Ralf Mueller over 4 years ago

looks good - you are ready to go now!

RE: CDO installation process in windows - Added by Matteo Pecchi over 4 years ago

I hope, I properly installed the software. I'll start to practise with it
thanks you for your help

    (1-12/12)