Project

General

Profile

Using monsum to get total over three months

Added by Jessica Steinkopf almost 3 years ago

Hi All

I am trying to calculate the total precipitation over three months (DJF) and then take the average of these totals over a set time period (i.e. the average of DJF 1982 total, DJF 1983 total, etc.). Can anyone tell me if the monsum operator does sum the months together?

Here is what I think is correct:
cdo timmean -monsum -selyear,1982/2020 -selmon,12,1,2 -shifttime,-1mo infile outfile

The time shift is because DJF run over two years.
The infile is a netcdf containing monthly precipitation totals for Africa (from CRU).

Thanks
Jessica


Replies (4)

RE: Using monsum to get total over three months - Added by Jessica Steinkopf almost 3 years ago

Hi Karin

Thanks so much for your help. Just to clarify, does the outfile for seassum give the sum for each season in each year? Then would I use splitseas to get just DJF?

Thanks
Jessica

RE: Using monsum to get total over three months - Added by Karin Meier-Fleischer almost 3 years ago

yes, seassum returns the sum for each season in a year, in your case the sum for each DJF season for each year.

    (1-4/4)