cdo mergetime (Abort): Input streams have different number of variables per timestep!
Added by Syed Ali almost 12 years ago
I am trying to merge a forecast model output files using following command. The files are 1-hourly for 72 hours (72 files)
cdo mergetime hff00Z05dec2012_* hff00Z05dec2012
I get following error.
cdo mergetime (Abort): Input streams have different number of variables per timestep!
What does the above error actually represent and how to handle it.
Thanks
Replies (6)
RE: cdo mergetime (Abort): Input streams have different number of variables per timestep! - Added by Jaison-Thomas Ambadan almost 12 years ago
Hi,
It means that the number of variables in your input files are different, so CDO cannot merge "all" variables. One thing you can do is select the "required variable" which you want to merge. You can use "-select" operator: Please have a look at the following thread (Uwe's reply):
https://code.zmaw.de/boards/2/topics/1474#message-1480
Cheers,
J
RE: cdo mergetime (Abort): Input streams have different number of variables per timestep! - Added by Syed Ali almost 12 years ago
Thanks J
Actually the grib files hff00Z05dec2012_000 to hff00Z05dec2012_000 have a single grads control file with the variables. So how can I distinguish which file has different variable. I thing I did is simply merge but it is showing lot of following warnings
cdo merge (Warning): Duplicate entry of parameter 113.201 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 78.2 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 124.2 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 125.2 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 122.2 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 121.2 in hff00Z11aug2012_072!
cdo merge (Warning): Duplicate entry of parameter 203.203 in hff00Z11aug2012_072!
RE: cdo mergetime (Abort): Input streams have different number of variables per timestep! - Added by Jaison-Thomas Ambadan almost 12 years ago
Hi,
Okay, then it may be possible to convert the GrADS files to NetCDF/GRIB using "import_binary" operator https://code.zmaw.de/embedded/cdo/1.5.8/cdo.html#x1-5680002.14.1
and then simply "-select" the required variable.
Cheers,
J
RE: cdo mergetime (Abort): Input streams have different number of variables per timestep! - Added by Syed Ali almost 12 years ago
Hello J
I want to ask are these warnings significant or they can just be ignored I tried import_binary but it is not working
*[pmdtest@pmd d00_11Aug2012]$ cdo f nc import_binary hff00Z11aug2012.ctl hff00Z11aug2012.nc> The invalid description file record is:
Open Error: Unknown keyword in description file
-
--> dtype grib 255
The data file was not opened.
cdo import_binary (Abort): Open failed!*
I think it cannot handle grib, it is only for binary data.
After merging by the above method I am able to open one single file containing 72-timesteps with grads ctl file.
RE: cdo mergetime (Abort): Input streams have different number of variables per timestep! - Added by Jaison-Thomas Ambadan almost 12 years ago
I want to ask are these warnings significant
These warnigns ( "Duplicate entry of parameter..." means that there are common variables (e.g. orogrphy etc) in all files, possibly with same timestamp. You can simply chech the difference of these variables in two different files; with "diff/diffn" operator
cdo diffn -select,param=203.203 ifile1 -select,param=203.203 ifile2
if there is no difference you can ignore the warnings I guess.
Also with VERY VERY old CDO version doesn't really recognize different GRIB level types.
Cheers,
J