Project

General

Profile

'Too many streams identified' error message

Added by Bernard Postema over 2 years ago

Dear all,
I am trying to bilinearly remap multiple .nc files to one .nc file with a different grid.
When I use the wildcard * (for the date of the file) in the cdo command, I get the error: " cdo (Abort): "Too many streams specified! Operator remapbil needs 1 input stream and 1 output stream! "
A similar method using * has worked before, and I can't find out what causes the error now. Is there a way to solve this problem without looping over the input files?
The script I use is attached.
Thanks!


Replies (4)

RE: 'Too many streams identified' error message - Added by Karin Meier-Fleischer over 2 years ago

Hi Bernhard,

remap functions can only take one input stream (file) (see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf).
You need a loop to remap each single file first and then merge the files at the end.

-Karin

RE: 'Too many streams identified' error message - Added by Bernard Postema over 2 years ago

Dear Karin,
thank you. Do you know the reason why the following command does work? It also uses a wildcard, hence multiple input files:

cdo -P 8 -remap,/work/mh0731/m300932/grid_info.txt,/work/mh0731/m300845/hackathon/dpp0029/grid_files/weight_dpp0016_1x1.nc -select,name=hfls '/work/mh0287/k203123/GIT/icon-aes-dyw3/experiments/dpp0052/dpp0052_atm_2d_ml_2020*T000000Z.nc' dpp0052_hfls_1x1_30min.nc

RE: 'Too many streams identified' error message - Added by Karin Meier-Fleischer over 2 years ago

You use the select operator which keeps the extracted variable from multiple input files and pipe this stream to the remap operator.

RE: 'Too many streams identified' error message - Added by Bernard Postema over 2 years ago

That was it, I solved it now using 'select'. Thank you for the help.

    (1-4/4)