Project

General

Profile

cdo -r copy does not convert from absolute time to relative time

Added by e ddc about 11 years ago

Hello

I am surely doing something wrong and count on you to tell me what :)
The time variable in my netcdf file is given in absolute time format. I need the same file but with time in relative units. So I tried:

cdo -r copy net1.nc net2.nc

and got

data:

time = -Infinity, -Infinity, -Infinity, -Infinity, -Infinity, -Infinity,

do you know why?

Thanks a lot in advance for your help.

Best,
e.

net2.nc (5.61 KB) net2.nc

Replies (2)

RE: cdo -r copy does not convert from absolute time to relative time - Added by e ddc about 11 years ago

Sorry I forgot the input file. Here it is.

net1.nc (5.53 KB) net1.nc

RE: cdo -r copy does not convert from absolute time to relative time - Added by Jaison-Thomas Ambadan about 11 years ago

Hi,

try

cdo -r -copy -settaxis,1850-12-16,00:00:00,1years net1.nc ofile.nc

Cheers,
J

    (1-2/2)