Project

General

Profile

mergetime fails to skip duplicate timestamps

Added by David Wang about 10 years ago

I found mergetime failed to skip duplicate timestamps when using piping. For example,

cdo mergetime a.nc b.nc c.nc out.nc # correctly skip duplicate timestamps
cdo select,year=1950/1999 -mergetime a.nc b.nc c.nc out.nc # fail to skip

SKIP_SAME_TIME is set to 1. I'm using CDO version 1.6.1 on a linux box.


Replies (1)

RE: mergetime fails to skip duplicate timestamps - Added by Uwe Schulzweida about 10 years ago

Hi David,

You can't combine mergetime with other operators when using more than one input file.

The following command

cdo select,year=1950/1999 -mergetime a.nc b.nc c.nc out.nc
will result in
cdo mergetime a.nc x.nc
cdo select,year=1950/1999 x.nc b.nc c.nc out.nc

Here is an example using the wildcard '?', this will work as excepted
cdo select,year=1950/1999 -mergetime '?.nc' out.nc

The explanation can be found in https://code.zmaw.de/projects/cdo/embedded/1.6.3/cdo.html#x1-90001.2.3

Best regards,
Uwe

    (1-1/1)