<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><p dir="ltr">Hi,<br>
You should define the variable in your script.<br>
'define z=ave(sst,t=2,t=4)'<br>
and same for other variables.<br>
And there are some errors in while loop. You can see the grads users document for the while loop.<br>
Regards<br>
Sravan<br>
<a href="https://uk.overview.mail.yahoo.com/mobile/?.src=Android">Sent from Yahoo Mail on Android</a></p>
</td></tr></table> <div id="_origMsg_">
<div>
<br />
<div>
<div style="font-size:0.9em">
<hr size="1">
<b>
<span style="font-weight:bold">From:</span>
</b>
Dr. Avinash Kumar <kumaravinash13@gmail.com>; <br>
<b>
<span style="font-weight:bold">To:</span>
</b>
<gradsusr@gradsusr.org>; <br>
<b>
<span style="font-weight:bold">Subject:</span>
</b>
[gradsusr] Problems in Multi-year Seasonal Timeseries <br>
<b>
<span style="font-weight:bold">Sent:</span>
</b>
Tue, Jan 21, 2014 12:22:25 PM <br>
</div>
<br>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top"><div dir="ltr"><div>Dear Respected Users of GrADS<br></div>I was trying to get 30 years seasonal mean (i.e. Summer JFM, Autumn AMJ, Winter JAS, Spring OND) from monthly mean data of SST1982 Jan to 2012 Dec. Hence I have proceed to script in given steps but I feel loop is not considering while processing the data. I think I am able to get only one year seasonal data. I would be highly appreciated if anyone correct this script.<br>
<br><div>'sdfopen C:\OpenGrADS\<a rel="nofollow" target="_blank" href="http://sst.mnmean.nc">sst.mnmean.nc</a>'<br>'q file'<br>'c'<br>'set mpdset hires'<br>'set lat -89.5 -50'<br>'set lon -180 179.5'<br>
'set mproj sps'<br>'set gxout shaded'<br>'z=ave(sst,t=2,t=4)'<br>'x=12'<br>'y=14'<br>'set t 2'<br>if(t<374)<br> 'zave=ave(sst,t+x,t+y)'<br> 'x=x+12'<br> 'y=y+12'<br>
'z=z+zave'<br>else<br>endif<br>'z1=z/30'<br>'set display color white'<br>'set frame off'<br>'set grid on 1 1 5'<br>'set annot 1 10'<br>'d z1' <br>'draw title Summer_Sea_Surface_Temp-1982-2012'<br>
'cbar'<br>'printim c:\opengrads\output\Summer_Sea_Surface_Temp-1982-2012.jpg x1024 y768'<br><br clear="all"><div><div dir="ltr"><div><span style="font-family:georgia, serif;"><font size="1"><span style="color:rgb(76,17,48);"><span style="color:rgb(102,0,0);"><b>Kind Regards<br>
<br>Dr. Avinash Kumar</b></span><br></span><i>Polar Remote Sensing Division <br></i><span style="color:rgb(11,83,148);"><span style="color:rgb(7,55,99);"><b>National Centre for Antarctic & Ocean Research</b></span><br></span>Ministry of Earth Sciences, Government of India<br>
Headland Sada, Vasco-da-Gama, Goa 403 804, India<br><u> </u><span style="color:rgb(53,28,117);"></span></font></span></div>
<div><font><b><span style="color:rgb(53,28,117);"><i> </i></span></b></font></div></div></div>
</div></div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>