<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv1720247044">Dear GrADS users,<br><br>I am trying to convert 3 hourly data into daily data by using GrADS script. I have monthly files having 3 hourly data. I have successfully run the following script.<br><br><br>'reinit'<br>x=abc('7050100')<br>x=abc('7060100')<br>function abc(rcm)<br>'reinit'<br>'open ATM.199'rcm'.ctl'<br>'set gxout fwrite'<br>'set fwrite ATM.199'rcm'.grd'<br>'set x 1 144'<br>'set y 1 124'<br>t=1<br>tmax=124<br>while(t<=tmax)<br>'set t 't<br>'define a=ave(tpr,t+0,t+3)'<br>'d const(a,-9999.0,-u)'<br><br>t=t+4<br>endwhile<br>return<br><br><br>The problem is that I want to generate a single output file instead of having two. Please help me in this regard.<br><br><br>Regards<br><br>Mubashar<br><br><p>-------------------------------------------------------------</p><p>Muhammmad Mubashar Ahmad Dogar<br>Scientific Officer
(Climatology Section),<br>Global Change Impact Studies Centre (GCISC),<br>NCP complex, Quaid-e-Azam University Campus,<br>Shahdra road, Islamabad, Pakistan.<br>Tel: +92519230226<br>Mob:+923325143034<br>email: mubashardogar@yahoo.com<br> mubashar.ahmad@gcisc.org.pk</p><p> mubashar.ahmad@gmail.com<br></p></div></td></tr></table><br>
<hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> Get your preferred Email name! </a> <br>
Now you can @ymail.com and @rocketmail.com.