Project

General

Profile

Create Time Series

Added by Yousef Albuhaisi about 4 years ago

Hi,

I have a soil_carbon.nc file which shape is (lat,lon), and I want to add a time variable of 365 days, in another word, I want to copy the values 365 times in one .nc file. what would be the easiest way to do it?

Regards.

Yousef.


Replies (4)

RE: Create Time Series - Added by Uwe Schulzweida about 4 years ago

cdo duplicate,365 infile outfile

RE: Create Time Series - Added by Yousef Albuhaisi about 4 years ago

Wow, I didnt expect its so easy!

Another Question, how would be deleting time steps?

Regards.

Many thanks.

RE: Create Time Series - Added by Uwe Schulzweida about 4 years ago

The following example will delete timestep 5 to 8:

cdo delete,timestep=5,6,7,8  infile  outfile
cdo delete,timestep=5/8  infile  outfile

    (1-4/4)