<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The smth9() function will do what you want, and you can nest expressions, like this:&nbsp;<div>'d smth9(smth9(smth9(var)))'<br><div><br><div><div>Also, the difference between using 'define' and 'display' for the ave function is that 'define' has looping over time built in. For display, you need to wrap a tloop() around the expression and it will work fine:</div><div><br></div><div>'d tloop(ave(var,t-3,t+3))'</div><div><br></div><div>--Jennifer</div><div><br></div><div><br></div><div><br></div><div>On Aug 7, 2011, at 11:22 AM, Arlindo da Silva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "> 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 =&nbsp;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&nbsp;</div> <div><br></div><div>ga-&gt; d&nbsp;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></blockquote><br><blockquote type="cite"><div class="gmail_quote"><div><br></div><div>&nbsp; &nbsp; 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> _______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div></body></html>