Project

General

Profile

360day calendar

Added by Mehwish Ramzan over 9 years ago

Dear CDO Community,

I want to convert daily observation data (of 26 years) to 360 days so that i can compare it with my model which gave 360days output.
I used the following command but it does not skip days after 360 (5-6 days) when i view the newly created file in GrADS.

The command i used is as follows;

cdo setcalendar,360days aphro.nc newaphro.nc

Please guide me how i can skip the last 5-6 days of each year? I am using CDO version 1.5.3.

Second option will be by setting the values of each year after 360day to zero but how i can achieve that ?

Please guide me

Thank you

With Best Regards,

Mehwish


Replies (2)

RE: 360day calendar - Added by Uwe Schulzweida over 9 years ago

Dear Mehwish,

The CDO operator setcalendar does not recalculate the dates of an existing time axis and the number of timestep remains unchanged. The intention of this operator is to create a new time axis in combination with e.g. the operator settaxis.
Here is a solution for this task:
  • select the 360 timesteps of each year: select,timestep_of_year=1/360
  • set the calendar to 360_day: setcalendar,360_day
  • set a new time axis: settaxis,....

Here is an example for a daily time series starting 1978-01-01T12:00:00:

cdo settaxis,1978-01-01,12:00:00,1day -setcalendar,360_day -select,timestep_of_year=1/360 ifile ofile

The operator select is available since CDO version 1.6.2.

Cheers,
Uwe

RE: 360day calendar - Added by Mehwish Ramzan over 9 years ago

Dear Uwe,

Thank you so much for your kind reply.

Okay i will upgrade my CDO version and try your suggestions.

With Best Regards,

Mehwish

    (1-2/2)