Project

General

Profile

corrupted time axis after using shifttime

Added by Ralf Hand about 11 years ago

I'm trying to shift the time axis of a file by 3 month into forward direction. The first timestep in the original file is October 1st, I want it to be the January 1st. When using a relative time axis, `cdo shifttime,+3month` results in a corrupted time axis in the outputfile, containing March 1st twice. With an absolute time axis I got artefacts like a 29th and a 30th of February. I thought switching to a 365-day calendar might help, but it did not change the end-of-february-problem.

Is there any way to do the shift, conserving a proper time axis in the output file?

Thanks for any help on this,
Ralf


Replies (1)

RE: corrupted time axis after using shifttime - Added by Uwe Schulzweida about 11 years ago

Hi Ralf,

To shift a daily timeseries by some month can't give reasonable results if the length of all months is not the same. You have to shift the timeseries by the number of days:

cdo shifttime,92days ifile ofile

Cheers,
Uwe

    (1-1/1)