Project

General

Profile

cdo -mergetime skips timesteps

Added by Corinna Schütt 8 months ago

I used cdo -mergetime (chained together with -sellonlatbox and -selname) to merge 8 files together for a full day. Each input file has 18 timesteps (every 10 minutes = 3 hours). Now the resulting output file has 48 timesteps (every 30 minutes) and not 144 as expected. In my recent case that is not important I get along with the reduced timesteps. But I would like to understand why and how to avoid it in case I need all timesteps.

cdo-mergetime_infiles2.jpg (481 KB) cdo-mergetime_infiles2.jpg cdo showtimestamp of all input files
cdo-mergetime_outfile2.jpg (142 KB) cdo-mergetime_outfile2.jpg cdo showtimestamp of output file

Replies (2)

RE: cdo -mergetime skips timesteps - Added by Karin Meier-Fleischer 8 months ago

Without more information, try something like:

cdo -O  -sellonlatbox,0,90,0,60 -selname,myvar -cat  infile_*.nc outfile.nc

RE: cdo -mergetime skips timesteps - Added by Corinna Schütt 8 months ago

Thanks.
My command was 'cdo -sellonlatbox,-30,50,40,80 -selname,u,v,w -mergetime infile1.nc infile2.nc ... outfile.nc'. The outfile is generated by the call.
I will try the suggested 'cat' operator. As I understood from the documentation this operator attends an existing outputfile.

But still I would like to understand the behaving of the 'mergetime' operator.

    (1-2/2)