Project

General

Profile

settaxis not working with seasonal data

Added by Nathanael Harwood almost 6 years ago

Hi all,

Trying to set the time axis on winter only (DJF) data. I'm using the following:

cdo -selmon,12,1,2 -settaxis,1981-12-03,00:00:00,5day temp_5day.nc temp_5dayshift.nc

Which works, but stops at 1991 rather than the data set end point (2018-02-28). If I try split these operators up, DJF is no longer selected.

Please let me know if you need the code that created the file attached below!

Thanks, NH (CDO version 1.9.4)

temp_5day.nc (41.6 MB) temp_5day.nc 850hPa Temperature

Replies (3)

RE: settaxis not working with seasonal data - Added by Ralf Mueller almost 6 years ago

hi!

the uploaded file already HAS a time axes starting at 1981-12-03 (0 o'clock'), 5 day increment, only months DJF. I see nothing specific in 1991.

I guess I dont understand what you want to do...

cheers
ralf

RE: settaxis not working with seasonal data - Added by Nathanael Harwood almost 6 years ago

Hi Ralf -

Apologies, the timesteps show up as '1981-12-01 -- 1981-12-05' in Panoply. I'm using it to create an anomaly with ydaysub and a file with '1981-12-03' etc as timesteps, so it's really important that the two match.

Thanks

RE: settaxis not working with seasonal data - Added by Ralf Mueller almost 6 years ago

CDO interprets this differently:

 % cdo showdate -seltimestep,1/5 temp_5day.nc                                                                       [Wed 2019-02-13|17:39:30]
cdo(2) seltimestep: Process started
  1981-12-03  1981-12-08  1981-12-13  1981-12-18  1981-12-23
cdo(2) seltimestep: Processed 163800 values from 1 variable over 6 timesteps

I think, panoply might not correctly interpret the 365-day calendar

    (1-3/3)