cdo mergetime with OpenIFS SH grib files
Added by Juha Lento 4 days ago
Hi,
I cannot figure out how to merge timesteps from grib files produced by OpenIFS, in which the variables are in spherical harmonics representation. Other types of output files from OpenIFS seem to work fine with mergetime. As an example:
$ cdo mergetime ICMSHnorm+050700 ICMSHnorm+050700 merged.grib cdo mergetime: Processed 32 variables over 4 timesteps [1.01s 153MB] $ ls -Hlh ICMSHnorm+050700 ICMSHnorm+050700 merged.grib -rw-rw----. 1 tuumii project_2019976 87M Oct 21 14:33 ICMSHnorm+050700 -rw-rw----. 1 tuumii project_2019976 87M Oct 21 14:33 ICMSHnorm+050700 -rw-rw----. 1 jlento project_2019976 87M Nov 18 12:22 merged.grib
cdo is reporting that is has processed 4 timesteps (there should be only 2) and the size of the output 'merged.grib' is the same as for a single timestep file (instead of double size for two timesteps). The input files are attached.
cdo version is 2.6.0, compiled with eccodes for grib 1 (otherwise cdo would fail immediately with mixed grib1/2 messages in the file).
How should I merge these files correctly? If filtering out some possibly problematic grib messages (with apply with [:] notation, for example) is needed, that would be ok solution, but I'd like to avoid creating temporary files if possible.
Thank you!
Replies (1)
RE: cdo mergetime with OpenIFS SH grib files - Added by Juha Lento 4 days ago
Cut and paste typo in the example above. Should be:
$ cdo -O mergetime ICMSHnorm+050700 ICMSHnorm+050704 merged.grib
cdo mergetime: Processed 32 variables over 4 timesteps [1.02s 153MB]
$ ls Hlh ICMSHnorm+050700 ICMSHnorm+050704 merged.grib. 1 tuumii project_2019976 87M Oct 21 14:33 ICMSHnorm+050700
-rw-rw---rw-rw---. 1 tuumii project_2019976 87M Oct 21 14:33 ICMSHnorm+050704rw-rw---. 1 jlento project_2019976 87M Nov 18 12:58 merged.grib