Project

General

Profile

Create new timestamp after linear time interpolation (inttime)

Added by Marco Alves almost 4 years ago

Hello everyone,

I have a dataset at hourly timesteps and I want to interpolate it to 30-min with the correct timestamp. How can I do that?

Currently, I am interpolating the data with 'cdo inttime,date,time,inc ifile.nc ofile.nc'. But the output file duplicates the timestamps instead of creating a new one based on the correct time-steps.

ex.:
this is what I have: 2000-01-01 01:*00*:00, 2000-01-01 01:*00*:00, 2000-01-01 02:*00*:00, 2000-01-01 02:*00*:00, etc.
That is what I want: 2000-01-01 01:*00*:00, 2000-01-01 01:*30*:00, 2000-01-01 02:*00*:00, 2000-01-01 02:*30*:00, etc.

Thanks in advance for all the help!

Cheers,
M.


Replies (1)

RE: Create new timestamp after linear time interpolation (inttime) - Added by Brendan DeTracey almost 4 years ago

Without a sample file and your exact command line it is hard to help.

$ cdo intntime,2 infile outfile
?

    (1-1/1)