Project

General

Profile

convert integer time series to real dates

Added by Alexandros Alevizos about 5 years ago

Hi all

I am having a time series of daily mean sst data and I want to create some plots with the time on the x-axis. When I plot the data I get on the time axis integers instead of real dates. The date of 1982-1-1 is represented by the integer 66474. Is it possible to convert these integers with real dates with cdo?
Thank you in advance a lot!
Cheers,
Alex


Replies (1)

RE: convert integer time series to real dates - Added by Karin Meier-Fleischer about 5 years ago

Hi Alex,

you can use the showtimestamp operator to get the dates for each time step

cdo showtimestamp $infile

Output e.g.

  2001-01-01T00:00:00  2001-01-01T06:00:00  2001-01-01T12:00:00  2001-01-01T18:00:00

-Karin

    (1-1/1)