I'm really new to this CDO thing and I feel awkward.
I have been working with netcdf files that have daily precipitation data and I would like to perform these calculations with CDO
-Then calculate the annual maximum of the sliding sum for each year.
-And finally, calculate the 20-year average of those values
So if I understand correctly you want the average rainfall for 5 specific days of the year over a 3 year period?
Well the answer is to take the time mean, not annual yearmean
cdo timmean in.nc out.nc
But... If you don't me saying it seems a very strange thing to do. It reminds me of the famously infamous paper that tried to work out the impact of aviation on climate by comparing the 5 days post 9/11 with the same 5 days the year before!
Maybe if you edit the question to include more of the science and justification for calculating this we can help further.
Assuming everything is in a single file, the following approach, where all 3 calcs are chained, should work:
cdo -timmean -yearmax -runsum,5 infile outfile
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.