<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>I tried to get the yearly average value of temperature over the certain domain and print the output in csv with appending each year data set but script shows error. can anyone help me.</div><div><br></div><div>'reinit'</div><div>'open TMAX20KM.CTL'</div><div>y= 1</div><div>while (y &lt;=39)</div><div>&nbsp; &nbsp; b=y*12</div><div>&nbsp; &nbsp; a=12*y-11</div><div>&nbsp; &nbsp; 'define nep=ave(aave(tt, lon=80,lon=88,lat=26,lon=31),t='a',t='b',1)'&nbsp;</div><div>&nbsp; &nbsp; &nbsp;'d nep' &nbsp;</div><div>'fprintf nep F:\adpc_gridded_data\output.csv %g 1' &nbsp; &nbsp; &nbsp;&nbsp;</div><div>y=y+1</div><div>endwhile</div><div>'quit'</div><br><i>Regards<br>Ramchandra Karki<br><br></i>                                               </div></body>
</html>