[gradsusr] line smoothing

Arlindo da Silva dasilva at alum.mit.edu
Sun Aug 7 11:22:30 EDT 2011


On Sun, Aug 7, 2011 at 1:37 AM, Howard Staines <metris at clear.net.nz> wrote:

> I was interested in smoothing line for meteogram ... 1D data
> Accepted this maybe obvious but ...?
>
>
I am assuming that you would like to smooth in time... One very simple way
to achieve this is to plot a running mean with the ave() function. So, for a
single (lat,lon) point with t varying, instead of

ga-> d t2m

do

ga-> define tt = ave(t2m,t-3,t+3)
ga-> d tt

where [t-3,t+3] is the time window; play with the width of this window until
you find something that is reasonable. And make sure to define the smoothed
variable first because entering

ga-> d ave(t2m,t-3,t+3)

will not work (for reasons that are too technical to go into here.)

    Arlindo


-- 
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110807/10a205b3/attachment-0003.html 


More information about the gradsusr mailing list