Running average over time

Saji Hameed saji at HAWAII.EDU
Fri Jan 21 15:02:59 EST 2005


Jason,

Assuming that the data spans time indices t1 and t2, the 5yr running
mean of sst can be obtained by the following:


'set t 't1-2' 't1+2   ! assuming time increment is 1 year
'd tloop(ave(sst,t-2,t+2))'

saji

Saji N. Hameed, Assistant Researcher,
IPRC-SOEST, 2525 Correa Road, Univ. of Hawaii,
Honolulu, HI 96822, U.S.A
http://iprc.soest.hawaii.edu/~saji
tel.: (808) 956 9534 , fax.: (808) 956 9425

----- Original Message -----
From: Jason Snyder <jmssnyder at UCDAVIS.EDU>
Date: Wednesday, January 19, 2005 12:27 pm
Subject: Running average over time

> I was wondering if any of you know about how to do plot a running time
> average in a time series.  For example how to plot for 100 years a
> 5 year
> running average of sea surface temperatures over a particular region.
>
> Thanks,
>
> Jason
>



More information about the gradsusr mailing list