<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 <=39)</div><div> b=y*12</div><div> a=12*y-11</div><div> 'define nep=ave(aave(tt, lon=80,lon=88,lat=26,lon=31),t='a',t='b',1)' </div><div> 'd nep' </div><div>'fprintf nep F:\adpc_gridded_data\output.csv %g 1' </div><div>y=y+1</div><div>endwhile</div><div>'quit'</div><br><i>Regards<br>Ramchandra Karki<br><br></i>                                            </div></body>
</html>