I have dekad rainfall from CHIRPS in netCDF: https://data.chc.ucsb.edu/products/CHIRPS-2.0/global_dekad/netcdf/
1 dekad data in nc format is for 1 year ie. chirps-v2.0.1981.dekads.nc
Then I merge all the nc files into single nc ncrcat *.nc merge.nc
Lastly, I would like to calculate 3-dekad rainfall accumulation (the result will equal to monthly accumulation) from dekad data, with rolling dekad accumulation. For example:
rain1981.01.1 + rain1981.01.2 + rain1981.01.3
rain1981.01.2 + rain1981.01.3 + rain1981.02.1
rain1981.01.3 + rain1981.02.1 + rain1981.02.2
...
rain2019.12.1 + rain2019.12.2 + rain2019.12.3
How to do that using CDO or NCO?