On Sun, Aug 7, 2011 at 1:37 AM, Howard Staines <span dir="ltr">&lt;<a href="mailto:metris@clear.net.nz">metris@clear.net.nz</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I was interested in smoothing line for meteogram ... 1D data<br>
Accepted this maybe obvious but ...?<br>
<br></blockquote><div><br></div><div>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</div>
<div><br></div><div>ga-&gt; d t2m</div><div><br></div><div>do</div><div><br></div><div>ga-&gt; define tt = ave(t2m,t-3,t+3)</div><div>ga-&gt; d tt</div><div><br></div><div>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 </div>
<div><br></div><div>ga-&gt; d ave(t2m,t-3,t+3)</div><div><br></div><div>will not work (for reasons that are too technical to go into here.)</div><div><br></div><div>    Arlindo</div><div><br></div></div><br>-- <br>Arlindo da Silva<br>
<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>