<div dir="ltr"><br><div class="gmail_quote"><br><div dir="ltr"><div><div><div><div>Hello fellow GRAD user,<br><br></div>I have a problem in plotting the accumulated rain in grads.,<br></div>my data comes in 6 hourly...<br>
</div>my sample script is shown below.<br></div>
the dates are:<br>08/06/2012/00<br>08/06/2012/06<br><div>08/06/2012/12<br>08/06/2012/08<br>08/07/2012/00<br>08/07/2012/06<br>08/07/2012/12<br>08/07/2012/18<br>08/08/2012/00<br>08/08/2012/06<br>08/08/2012/12<br>08/08/2012/18<br>
08/09/2012/00<br>08/09/2012/06<br>08/09/2012/12<br>08/09/2012/18<br>08/10/2012/00<br><br></div><div>I want to plot the accumulated rain EVERY 6 HOUR but my script does not ouput it correctly.Could anyone help me correct my script?<br>
</div><div>i'll appreciate any help.<br><br></div><div>thanks<br></div><div><br><br>'open surfnudge/surf.ctl'<br>'set display color white'<br>'clear'<br>'set gxout shaded'<br>'set mpdset hires'<br>
'set lat 4 24'<br>'set lon 115 134' <br><br>prompt 'Max Time: '<br>pull Max_time<br>prompt 'Title Header: '<br>pull Title_header<br><br>Time_val=2<br>*Time_val=8<br>while(Time_val<=Max_time)<br>
'set t 'Time_val<br>DateStr = subwrd(result,4)<br>'c'<br>*Every 3 hours for model output<br>'d rainc+rainnc-(rainc(t='Time_val-1')-rainnc(t='Time_val-1'))'<br>'draw title 'Title_header'\'DateStr<br>
'cbarn'<br>'printim 'Title_header'_'DateStr'.png'<br>'c'<br>Time_val=Time_val+1<br>endwhile<br>'quit'<br><br></div></div>
</div><br></div>