Project

General

Profile

How to modify the time of the nc files.

Added by Wi Du almost 7 years ago

Hello, everyone,
I have several netcdf files. I checked the time period of the files. All files have 50 years. Some files are right from 1961 to 2010, but some files are wrong from 1952 to 2001. So how to modify the time of the wrong files?
Thanks a lot!
Du


Replies (2)

RE: How to modify the time of the nc files. - Added by Karin Meier-Fleischer almost 7 years ago

Hi Du,

you can use the settaxis operator

[[https://code.mpimet.mpg.de/projects/cdo/embedded/index.html#x1-2120002.6.4]]

E.g. to set the time axis to 1961-01-01 12:00:00 with an increment of one month for each timestep use:

  cdo settaxis,1961-01-01,12:00:00,1mon infile outfile

-Karin

RE: How to modify the time of the nc files. - Added by Wi Du almost 7 years ago

Hi, Dr.Karin
It works!
Thanks a lot!

Best regards,
Du

    (1-2/2)