Project

General

Profile

CDO operators not working in cygwin envrionment 64bit Windows 10

Added by Ujjal Baruah over 4 years ago

Dear all,

I have all the packages installed required for cdo -v 1.9.8 operations through cygwin in 64 bit Windows 10. I tried to open the netcdf4 files using all the possible operators available but i get the error "Operator >f< not found! Similar operators are:(not found); $ cdo info Aura2005.nc, cdo info: Open failed on >Aura2005.nc< Unknown Error". Although the cdo help file opens with command 'cdo -h'

What is causing such errors?
Can I not perform cdo processing in command prompt instead of using cygwin? I had an older version of cdo which worked completely fine in command prompt in Windows 7 & 10 but can't open new hdf5 and netcdf4. files.
Any help will be appreciated.

thank you

P.S: Please do let me the command to merge daily netcdf4 files in a folder and extract as one output in netcdf3

CDO.tif (292 KB) CDO.tif Screen shot1
cdo2.jpg (267 KB) cdo2.jpg Screen shot 2
Aura2005.nc (12.2 MB) Aura2005.nc

Replies (19)

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ralf Mueller over 4 years ago

the old version of CDO was build without netcdf4/hdf5 support because I could not build hdf5 cross-compiled with mingw32. the Cygwin-based package offers this.

I rechecked the 1.9.8-cygwin version with my windows 10 box without problems.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ralf Mueller over 4 years ago

$ cdo sinfov /cygdrive/c/Users/me/Downloads/Aura2005.nc
   File format : NetCDF4 classic zip
    -1 : Institut Source   T Steptype Levels Num    Points Num Dtype : Parameter name
     1 : unknown  OMI      c instant       1   1   6480000   1  F32z : key_science_data_column_amount
   Grid coordinates :
     1 : lonlat                   : points=6480000 (3600x1800)
                        longitude : -179.95 to 179.972 by 0.1000061 degrees_east
                         latitude : -89.95 to 89.94726 by 0.09999847 degrees_north
   Vertical coordinates :
     1 : surface                  : levels=1
cdo    sinfon: Processed 1 variable [0.09s 12MB].

So I have no idea, what is the reason behind your problem. you could update cygwin, but that's just an idea. I upload the output of

cygcheck -s
for comparison with your installation.

Another option is to use the Linux subsystem von Windows10. It's based on ubuntu and comes with a cdo binary via the ubuntu packages management. Under Linux there is also the option to use Anaconda for installation

hth
ralf

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

checked again in cygwin, unfortunately, can't make it work. So going for the second option and installing Linux subsystem: Will update you on that.

Thanks

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

checked again in cygwin, unfortunately, can't make it work. So going for the second option and installing Linux subsystem: Will update you on that....1 hour later Ubuntu WLS also not working in some weird way.

Thanks

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Ujjal Baruah wrote:

checked again in cygwin, unfortunately, can't make it work. So going for the second option and installing Linux subsystem: Will update you on that....1 hour later Ubuntu WLS also not working in some weird way.

Thanks

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Ujjal Baruah wrote:

Ujjal Baruah wrote:

checked again in cygwin, unfortunately, can't make it work. So going for the second option and installing Linux subsystem: Will update you on that....1 hour later Ubuntu WLS also not working in some weird way. Why am i getting this error message in Ubuntu?

Thanks

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ralf Mueller over 4 years ago

to install something you need to call

sudo apt-get install cdo

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

The 'sudo apt-get install cdo'gives me error message Ujjal Baruah@DESKTOP-UJJAL ~
$ sudo apt-get install cdo
-bash: sudo: command not found

Cant figure it out where is the problem. Is there no windows version of cdo that I can run without Linux based operating system?

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

The 'sudo apt-get install cdo'gives me error message Ujjal Baruah@DESKTOP-UJJAL ~
$ sudo apt-get install cdo
-bash: sudo: command not found

Cant figure it out where is the problem. Is there no windows version of cdo that I can run without Linux based operating system? like i have the cdo 1.6 version which runs smoothly in windows 7,8, 10 for older netcdf files but can read new netcdf4 version.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Ujjal Baruah wrote:

The 'sudo apt-get install cdo'gives me error message Ujjal Baruah@DESKTOP-UJJAL ~
$ sudo apt-get install cdo
-bash: sudo: command not found

Cant figure it out where is the problem. Is there no windows version of cdo that I can run without Linux based operating system? like i have the cdo 1.6 version which runs smoothly in windows 7,8, 10 for older netcdf files but can't read new netcdf4 version.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Doesnt work either. cant figure it out. evrything is there..the packages, cywin, why the commands doesnt exists. i am out of solution here

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ralf Mueller over 4 years ago

the linux subsystem and the cygwin installation have nothing to do with each other. you need to know how to install software within the linux subsystem (which is based on ubuntu). Usually this works with a tool called 'apt-get' but it doesn't seem to be there.

In one of your images the call

sudo apt install cdo
almost worked. it could not find the cdo package, but the commands did work. try
sudo apt update
On ubuntu, the call
sudo apt-get update
updated the package database. And if this worked try
sudo apt install cdo
again.

Or try the man page of apt with

man apt

hth
ralf

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

i managed to install cdo 1.9.6 but it doesmt work in cygwin.i m this close to working with cdo but still unable to do it

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ralf Mueller over 4 years ago

again: cygwin and the ubuntu-bash thing on windows 10 have nothing to do with each other. the CDO binary you are using (last image) is the cygwin binary.

go an try to run the ubuntu-based Bash from the windows start menu

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Same thing in Bash too. It worked for a few lines and stopped. I tried evrything to get it installed using sudo, apt, apt-get, nothing left but ddnt work.
I tried to reinstall CDO through Bash in windows but failed miserably.
Do I need to add a path to CDO files in environment variables in Ubuntu? If yes, how to do it?

or,
I have a hunch that it might be due to proxy LAN connection I am in. Since I already have downloaded the CDO files why the commands not working, that I am concerned. I will configure the proxy setting in Ubuntu and will revert back to you after two days..Thanks for trying to help me out. Would like to start fresh again.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Same thing in Bash too. It worked for a few lines and stopped. I tried evrything to get it installed using sudo, apt, apt-get, nothing left but ddnt work.
I tried to reinstall CDO through Bash in windows but failed miserably.
Do I need to add a path to CDO files in environment variables in Ubuntu? If yes, how to do it?

or,
I have a hunch that it might be due to proxy LAN connection I am in. Since I already have downloaded the CDO files why the commands not working, that I am concerned. I will configure the proxy setting in Ubuntu and will revert back to you after two days..Thanks for trying to help me out. Would like to start fresh again.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Ujjal Baruah wrote:

Same thing in Bash too. It worked for a few lines and stopped. I tried everything to get it installed using sudo, apt, apt-get, nothing left but didn't work.
I tried to reinstall CDO through Bash in windows but failed miserably."No acceptable C compiler is found in the path"
Do I need to add a path to CDO files in environment variables in Ubuntu? If yes, how to do it?

or,
I have a hunch that it might be due to proxy LAN connection I am in. Since I already have downloaded the CDO files why the commands not working, that I am concerned. I will configure the proxy setting in Ubuntu and will revert back to you after two days..Thanks for trying to help me out. Would like to start fresh again.

RE: CDO operators not working in cygwin envrionment 64bit Windows 10 - Added by Ujjal Baruah over 4 years ago

Ujjal Baruah wrote:

Ujjal Baruah wrote:

Ujjal Baruah wrote:

Same thing in Bash too. It worked for a few lines and stopped. I tried everything to get it installed using sudo, apt, apt-get, nothing left but didn't work.
I tried to reinstall CDO through Bash in windows but failed miserably."No acceptable C compiler is found in the path"
Do I need to add a path to CDO files in environment variables in Ubuntu? If yes, how to do it?

or,
I have a hunch that it might be due to proxy LAN connection I am in. Since I already have downloaded the CDO files why the commands not working, that I am concerned. I will configure the proxy setting in Ubuntu and will revert back to you after two days..Thanks for trying to help me out. Would like to start fresh again.

    (1-19/19)