Project

General

Profile

Can we calculate 30 year moving average in cdo by using runmean command?

Added by jyoti lodha over 5 years ago

As I have to calculate 30 year moving average of temperature file, can we use using Runmean command?
cdo runmean,31 test.nc run.nc Is this ouptut is correct?

Waiting for a positive reply.

Thanks

test.nc (227 KB) test.nc temperture file
run.nc (9.83 KB) run.nc Runmean file

Replies (1)

RE: Can we calculate 30 year moving average in cdo by using runmean command? - Added by Karin Meier-Fleischer over 5 years ago

Hi Jyothi,

the answer is partly yes. Use runmean operator to compute the running mean over a number of timesteps.

If you want to compute a 30 years running mean from 1975-2004 (your file contains the years 1975-2005) then

cdo runmean,30 infile outfile
Using runmean,31 would compute the 31 years running mean from 1975-2005.

-Karin

    (1-1/1)