<div dir="ltr"><div><div><div><div>I think that expression will give you the average January temperature. If you want a monthly time series of temperature averaged over a specified (prior, following, or centered somewhere) 12-month window, you could use something like<br></div>'d ave(temp-273.15,t-0,t+12)'<br></div>although you may want to verify if that is valid first.<br><br></div>If you are looking strictly for a JAN-DEC average each year, I'd look into using tmave().<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 11:34 AM, Gargi Akhoury <span dir="ltr"><<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div> I have one confusion. will the program below give the average of twelve months (i.e. from JAN to DEC) but 65 times as there are 780 total months???</div><div><br></div><div><div style="color:rgb(80,0,80);font-size:12.8px">'open temp.ctl' </div><div style="color:rgb(80,0,80);font-size:12.8px"><span style="font-size:12.8px">'set x 1 144'</span><br></div><div style="color:rgb(80,0,80);font-size:12.8px">'set y 1 73'</div><div style="color:rgb(80,0,80);font-size:12.8px">'set t 1 780'</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">'define tmp=ave(temp-273.15,t=1,t=780,12)' , <font color="#0000ff">%increment with 12 values and taking their average</font></div><div style="color:rgb(80,0,80);font-size:12.8px">'d tmp'</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 8:02 PM, Gargi Akhoury <span dir="ltr"><<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanku for this....!!<div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 8, 2015 at 5:16 PM, Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC] <span dir="ltr"><<a href="mailto:j.c.mikovitz@nasa.gov" target="_blank">j.c.mikovitz@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
You might need to modify a couple things:
<div><br>
</div>
<div><font size="2">'set t 1 780’ </font></div>
<div><font size="2">should be </font></div>
<div><font size="2">‘set t 1 12’ unless you are trying to get a running average for the whole time period. </font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">'define tmp=ave(temp-273.15,t=1,t=780,12)’ </font></div>
<div><font size="2">try</font></div>
<div><font size="2">'define tmp=ave(temp-273.15,t+0,t=780,12)’ </font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2"><br>
</font>
<div><div><div>
<div>On Sep 8, 2015, at 6:38 AM, Gargi Akhoury <<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>> wrote:</div>
<br>
</div></div><blockquote type="cite"><div><div>
<div dir="ltr">Hello,
<div> I want to do the average of time i.e months from January to December. The script is below but it is not working, kindly help me.....!!!</div>
<div><br>
</div>
<div>
<div style="font-size:12.8px">
<div>'open temp.ctl' </div>
<div><span style="font-size:12.8px">'set x 1 144'</span><br>
</div>
<div>'set y 1 73'</div>
<div>'set t 1 780'</div>
<div><br>
</div>
<div><br>
</div>
<div>'define tmp=ave(temp-273.15,t=1,t=780,12)' , <font color="#0000ff">%increment with 12 values and taking their average</font></div>
<div>'d tmp'</div>
<div>'define tmmp=amax(tmp,lon=0,lon=360,lat=-90,lat=90)'</div>
<div>'d tmmp'</div>
<div><br>
</div>
<div>val=subwrd(result,4)</div>
<div>hj=write(temp_eq.csv,val)</div>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Regards</div>
</div>
<div><br>
</div>
</div></div></div><span>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</span></blockquote>
</div>
<br>
</div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</div>