Project

General

Profile

Wildcards not supported

Added by Joerg Trentmann about 11 years ago

Dear cdo-developers,

I just downloaded the current cdo windows-excecutable (cdo-1.6.0-win32.zip) and am getting an error message that wildcards are not supported. Since I have not seen this error message using previous cdo-versions I was wondering whether this can be fixed.

Are there plans to provide windows-versions of the more recent cdo-version 1.6.1?

Thanks, kind regards,
Jörg

P.S. I recently switched to Windows 7, so the problem might also be related to the upgrade of the operating system.


Replies (16)

RE: Wildcards not supported - Added by Uwe Schulzweida about 11 years ago

Dear Joerg,

The CDO internal wildcard expansion is only supported on systems which provide the glob() function. I don't know whether this function is available on window systems. If not only external (Shell) pattern matching could be used. That means you can use filenames with wildcards only without quotes.

Cheers,
Uwe

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

The mingw cross-compiler does not support it - I had to disable this part of the code for creating the win32 binary.

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Dear Uwe and Ralf,

thanks for your feedback.

Since previous Windows versions of cdo did provide wildcard support I installed cdo version 1.5.5 (cdo-1.5.5-win32.zip), which works fine incl. wildcard expansion also under Windows 7. Since wildcard support is crucial for our applications (and there is no easy workaround on the Windows shell to provide multiple filenames to cdo e.g., for the mergetime command), we might have to stick to the older versions of cdo for our Windows applications.

It would be useful if you would provide Windows version that incl. wildcard support also on the cdo-download page, i.e., the version 1.5.5. Would it be possible to create a windows binary of the current cdo version including wildcard support just like for the previous versions?

Thanks, kind regards,
Jörg

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

You can use wildcards from the terminal/shell with any cdo version, only with 1.5.9 a wildcard processing was introduced, but you have to use single quotes (which should prevent the shell/terminal from expanding them). To come a little closer to you problem: What is the cdo call you want to do on win7? I could try to reproduce it to understand the problem.

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Hi Ralf,

I would like to use mergetime to combine multiple files with one timestep each into one file for further processing. Using Windows cdo v1.5.5 is works well (cdo mergetime FTHmm199*.nc Outfile.nc), but using cdo 1.6.0 the error message is:

cdo mergtime (Abort): Wildcards support not compiled in!

I did try with multiple ways to put quotes, but did not succeed yet.

Best regards,
Jörg

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

do you use the powershell?

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

I checked cmd and powershell with cdo-1.5.6.1, cdo-1.5.8, cdo.1.6.0 with a similar call

  • it never worked in cmd (cannot open 1*.nc)
  • it never worked in powershell (1.5.*: cannot open 1*.nc, 1.6.0: wildcard support not compiled in)

the wildcard seem to be always given to the application directly without shell expansion -->> wildcards have to handled by the application, not by the shell. Prior to 1.5.9 cdo never had wildcards support, so I wonder how it could ever worked in a windows environment.

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Ralf, thanks for your investigation!

Did you try also cdo-1.5.5 (i.e., the version that works with wildcards on my system)? I am using cmd, not powershell.

Jörg

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

You're right with cdo-1.5.5 it works in cmd and powershell! Unbelievable, that we already had this feature for win32. I'm not sure, what is the source of it though - could be cdo source or the mingw cross compiler version (4.2.1 for cdo-1.5.5, 4.6.3 otherwise). I can try to build cdo-1.6.1 with the old mingw, but I'm not sure it I get it running (i.e. getting an old mingw version and complete the compilation). I will check and report next week.

regards
ralf

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Ralf, I am glad you can reproduce the wildcard feature on your system.

Thanks for your support, have a good weekend, kind regards,
Jörg

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Hi Ralf,

any news on the issue with the wildcard support in the Windows versions of cdo?
It would be vey useful for us (we are using cdo within training activities) to have access to a wildcard-allowing Windows version of cdo.

Thanks, kind regards,
Jörg

RE: Wildcards not supported - Added by Ralf Mueller about 11 years ago

Hi Joerg,

finally I got it: the attached cdo-1.6.1-win32 has wildcard support (at least on my virtual win7). I'd be glad, if you could check this and drop a line here. Then I could put into to the public downloads area.

thanks in advance!
ralf

RE: Wildcards not supported - Added by Joerg Trentmann about 11 years ago

Hi Ralf,

thanks for providing the Windows file of the latest cdo-version incl. wildcard support, it works well on my Windows 7 computer!

Thanks for your effort and the support, kind regards,
Jörg

RE: Wildcards not supported - Added by Dominik Wendschlag almost 10 years ago

Hello,
I tried to run the training tutorial of the CM SAF. Ant when I tried to combine time steps i got the same error message:
mergtime (Abort): Wildcards support not compiled in!
Do you know what could be the reason?
thanks
Dominik

RE: Wildcards not supported - Added by Ralf Mueller almost 10 years ago

Which version do you use? What was the exact command line?

RE: Wildcards not supported - Added by Dominik Wendschlag almost 10 years ago

Hello!
thank you very much for the answer. I downloaded the cdo-1.6.4-win32.zip file from your Website and installed it on my Computer using Windows 8 as it was described. If I want to use the script attached "Combine time steps" and want to put the Output file this message appears.
Dominik

    (1-16/16)