<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'>Dear Andrew Friedman,<BR>Thank you for your help.<BR>In fact I would like to calculate average of sst during 10 years in special area for example lon=100 120 and lat= 0 7. Then I want to put the result in a text file.<BR>I wrote this script:<BR> <BR>'reinit'<br>'sdfopen H:/prate.sfc.mon.mean.nc'<br>'set t 517 643'<br>'d ave(ave(prate,lon=100,lon=120),lat=0,lat=7)'<br>r1= subwrd(result,4)<br>say r1<br>'close 1'<br>vars= r1<br>res=write('filename3.txt', vars ,append)<BR> <BR>but unfortunately I just got one number but I must see too many data. Is it possible to have average of SST during 10 years in special longitude and latitude. I mean I would like to have sst1 ( lon1&lat1), sst2 (lon2&lat2), ..... which averaged during 10 years.<BR> <BR>Regards,<BR> <BR>Thareh<br> <BR><div>> Message: 2<br>> Date: Wed, 1 Oct 2014 11:10:44 +0200<br>> From: Andrew Friedman <andfried@gmail.com><br>> Subject: Re: [gradsusr] Average of a parameter<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID: <85BC0AE9-7894-4048-9A70-9126D5993A61@gmail.com><br>> Content-Type: text/plain; charset=windows-1256<br>> <br>> Hi Thareh,<br>> Check out the ?ave? command: http://www.iges.org/grads/gadoc/gradfuncave.html<br>> Best, Andrew<br>> <br>> On Oct 1, 2014, at 9:16 AM, T. haghroosta <haghroosta@hotmail.com> wrote:<br>> <br>> > Dear All,<br>> > <br>> > Could anyone tell me how I can take the average of a parameter during 10 years? For example I would like to calculate 10-year average of SST in Grads.<br>> > <br>> > Best regards,<br>> > Thareh <br>> > _______________________________________________<br>> > gradsusr mailing list<br>> > gradsusr@gradsusr.org<br>> > http://gradsusr.org/mailman/listinfo/gradsusr<br>> <br>> <br>> <br><br></div>                                            </div></body>
</html>