<div dir="ltr"><div><div><div><div>Hello fellow grad user,<br></div> <br></div>i want to find the rmse for the accumulated rainfall,I pasted my sample script below but it is not working..grads is giving an error.<br><br></div>
<div>Any help will be appreciated.<br><br><br><br>'open obsnudge/observation_nudging.ctl'<br>'open model/fnl_nonudging.ctl'<br>Time_val=2<br>Time_prev=1<br>'set t 'Time_val<br>'define rn=(rainc+rainnc)-(rainc(t='Time_prev')-rainnc(t='Time_prev'))'<br>
'd rn'<br>'define dif=rn.1-rn.2'<br> 'define sq=dif*dif'<br> 'define am=amean(sq,lon=115,lon=135,lat=4,lat=25)'<br> 'define rmse=sqrt(am)'<br> 'd rmse'<br> a=subwrd(result,4)<br>
output=a<br> res=write(rmsewind_v.csv,output,append)<br> 'undefine dif'<br> 'undefine sq'<br> 'undefine am'<br><br>Time_val=Time_val+1<br>Time_prev=Time_prev+1<br>endwhile<br>quit<br><br></div><br>
<br></div>Lyndon<br></div>