<p dir="ltr">!! These lines are example and not intended to work without editing. !!</p>
<p dir="ltr">You need to define ntimes. </p>
<p dir="ltr">See dimsizes() function. I&#39;m not going to type it out for sake of education. <br></p>
<div class="gmail_quote">On 13 Oct 2014 17:11, &quot;Saurabh Singh&quot; &lt;<a href="mailto:saurabhsingh123op@gmail.com">saurabhsingh123op@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 4:59 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</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"><p dir="ltr">rhp= new( (/ntimes, 3/), float)</p>
<p dir="ltr">do t=0,ntimes-1<br>rhp(t,:) = wrf_interp_1d(rh(t,:,60,41), p(t,:,60,41), (/500,850,1000/)) <br>end do</p></blockquote></div><br>the error persists mate </div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">fatal:Variable (ntimes) is undefined</div><div class="gmail_extra">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 10 in file chota.ncl</div><div class="gmail_extra"><br></div><div class="gmail_extra">fatal:Variable (ntimes) is undefined</div><div class="gmail_extra">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 11 in file chota.ncl</div><div><br></div><div>even t the #0 subscript seems to be undefined .sorry for all the trouble but i hardly use loops in NCL .</div></div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span> </span></font><br style="color:rgb(51,204,0)"><br><font style="color:rgb(102,102,102)" size="1"> <b><i><span style="font-family:Webdings" lang="EN-GB">P</span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB"> : </span></i></b><b><i><span style="font-family:Arial,sans-serif" lang="EN-GB"> </span></i></b><b><i><span style="font-family:Tahoma,sans-serif" lang="EN-GB">Please consider the environment before printing this e-mail</span></i></b> </font><br style="color:rgb(102,102,102)"><br><br><br></div>
</div></div>
</blockquote></div>