momean dates problem
Added by Filipa Varino about 13 years ago
Hi, I'm trying to create a monthly mean data form daily annual data using monmean.
It computes the means successfully resulting in a file with 12 time steps but when i read it with grads the dates doesn't match. time step 1 ends in 31Jan bu time step 2 ends in 3mar instead of 28/29Feb.
Doesn't cdo recognize the days per month in it's standard calendar?
thanks
Replies (2)
RE: momean dates problem - Added by Uwe Schulzweida about 13 years ago
Hi Filipa,
Yes, CDO recognize the days per month in all supported calendars.
The problem is that GrADS needs equidistant time steps and the increment can't be computed correctly from the last day of a month. A workaround for this problem is to set the days to a constant between 1 and 28, e.g. 15:
cdo setday,15 -monmean ifile ofile
See also Tips on using NetCDF files with GrADS.
Best regards,
Uwe