<div dir="ltr">I think you are missing a few things. First of all you have a do loop that never ends. You need to insert the end do command at the end of the loop. Then you add files with f= add files(...), but you reference a variable &quot;a&quot; when you try to read U and V from the files. Change line 8 f=addfiles(fils,&quot;r&quot;) to a=addfiles(fils,&quot;r&quot;).<div>

<br></div><div>Please respond to ncl-talk if you still have problems.</div><div><br></div><div>Maria</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 3:48 PM, <a href="mailto:mmbuh@masonlive.gmu.edu">mmbuh@masonlive.gmu.edu</a> <span dir="ltr">&lt;<a href="mailto:mmbuh@masonlive.gmu.edu" target="_blank">mmbuh@masonlive.gmu.edu</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" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi everyone,<br>
</p>
<p>    I am trying to compute divergence and keeps getting an error message for the first and the last line, and i am not sure how to resolve that problem. Can some look through my script and assist me with where the error is coming from? <br>


</p>
<p>      Thanks​<br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px"><font><span style="font-size:10pt">Mbongowo J Mbuh<br>
Department of Geography and Geoinformation Science<br>
College of Science<br>
George Mason University<br>
Research Hall, Room 230<br>
4400 University Drive, MS 6C3<br>
Fairfax, VA   22032</span></font></div>
</div>
</div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>