<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
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>On Sep 8, 2015, at 6:38 AM, Gargi Akhoury <<a href="mailto:gargiakhoury@bitmesra.ac.in">gargiakhoury@bitmesra.ac.in</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<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>
_______________________________________________<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>
</body>
</html>