<div dir="ltr"><div><div>thanks for the kindest reply..This is a big help..<br></div>Here&#39;s my modified script:<br><br>&#39;open 1D_nudging/surfnudge/surface_grid_nudging.ctl&#39;<br>&#39;open 1D_nudging/model/fnl_nonudging.ctl&#39;<br>

<br>prompt &#39;Max Time: &#39;<br>pull Max_time<br>prompt &#39;Title Header: &#39;<br>pull Title_header<br>Time_val=2<br>Time_prev=1<br>while(Time_val&lt;=Max_time)<br><br>&#39;set t &#39;Time_val<br>&#39;define rn1=(rainc+rainnc)-(rainc(t=&#39;Time_prev&#39;)-rainnc(t=&#39;Time_prev&#39;))&#39;<br>

&#39;define rn2=(rainc.2+rainnc.2)-(rainc.2(t=&#39;Time_prev&#39;)-rainnc.2(t=&#39;Time_prev&#39;))&#39;<br>&#39;define dif=rn1-rn2&#39;<br>&#39;define sq=dif*dif&#39;<br>&#39;define am=amean(sq,lon=115,lon=135,lat=4,lat=25)&#39;<br>

&#39;define rmse=sqrt(am)&#39;<br>&#39;d rmse&#39;<br><br>rmse=subwrd(result,4)<br>output=rmse<br>res=write(rmse_rain.csv,output,append)<br><br>Time_val=Time_val+1<br>Time_prev=Time_prev+1<br>endwhile<br>quit<br><br><br>
</div>
This is working now..Thanks for your suggestions.<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 12:20 AM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, you can choose to leave the expression in that form.  What I have done is simply to distribute the minus sign.  The expressions are mathematically identical.<span class="HOEnZb"><font color="#888888"><div>

<br></div><div>Jeff</div></font></span></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Wed, May 15, 2013 at 2:53 AM, Lyndon Mark Olaguera <span dir="ltr">&lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 15, 2013 at 1:06 PM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>&#39;define fcstrain = rainc.1 + rainnc.1 - rainc.1(t-1) - rainnc.1(t-1)&#39;</div>




<div>&#39;define obsrain = rainc.2 + rainnc.2 - rainc.2(t-1) - rainnc.2(t-1)&#39;</div>
<div>&#39;define rainerror = fcstrain - obsrain&#39;</div></blockquote></div><br>Hello,</div><div class="gmail_extra">Thanks for the reply..</div><div class="gmail_extra">I have another question on this line..</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><div style="font-family:arial,sans-serif;font-size:13px">&#39;define fcstrain = rainc.1 + rainnc.1 - rainc.1(t-1) - rainnc.1(t-1)&#39;</div><div style="font-family:arial,sans-serif;font-size:13px">




&#39;define obsrain = rainc.2 + rainnc.2 - rainc.2(t-1) - rainnc.2(t-1)&#39;</div><div style="font-family:arial,sans-serif;font-size:13px">&#39;define rainerror = fcstrain - obsrain&#39;</div><div style="font-family:arial,sans-serif;font-size:13px">




<br></div><div style="font-family:arial,sans-serif;font-size:13px">should this be </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>&#39;define fcstrain = (rainc.1 + rainnc.1) - (rainc.1(t-1) + rainnc.1(t-1))&#39;</div>




<div>&#39;define obsrain =( rainc.2 + rainnc.2) - (rainc.2(t-1) + rainnc.2(t-1))&#39;</div><div><br></div><div>plus not minus?</div><div><br></div><div><br></div><div><br></div><div>I will try this later</div><span><font color="#888888">

<div>Lyndon</div></font></span></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></div></blockquote></div><div class="im"><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>


</div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>