Hi Stephen,<br><br>I am actually doing just what you said in terms of using &#39;set dfile [n]&#39; and looping over it that way similar to the code below:<br><br>num_files=4<br>i=1<br>&#39;set lat [x]&#39;<br>&#39;set lon [y]&#39;<br>
&#39;set t 1 61&#39;<br>while (i&lt;num_files)<br>&nbsp; &#39;set dfile &#39;i<br>&nbsp; &#39;d  smth9(mag(ugrd_surface,vgrd_surface)*1.9)&#39;<br><br>&nbsp; i=i+1<br>endwhile<br><br>I did not try the first method you spoke of &#39;d var.2&#39;; I might give that a whirl.&nbsp; It is worth noting that GrADS 1.8S11 runs this script exactly as expected.&nbsp; <br>
<br>I will write a response to Jennifer&#39;s email in a second.<br><br>Cheers,<br>Matt<br><br><div class="gmail_quote">On Mon, Mar 17, 2008 at 12:24 AM, Stephen R McMillan &lt;<a href="mailto:smcmillan@planalytics.com">smcmillan@planalytics.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">Matt,</font><br><font face="sans-serif" size="2">Are you indexing the variables, per
order of file opened?</font><br><br><font face="sans-serif" size="2">First file, &#39;d var...&#39;</font><br><font face="sans-serif" size="2">Second file, &#39;d var.2...&#39;</font><br><font face="sans-serif" size="2">Nth file, &#39;d var.n....&#39;</font><br>
<br><font face="sans-serif" size="2">An alternative would be to use &#39;set
dfile [n]&#39; and then display variable, as long as you are displaying variables
from only file [n] in expression.</font><br><br><font face="sans-serif" size="2">Stephen Mc</font><br><br><br><br><table width="100%"><tbody><tr valign="top"><td width="40%"><font face="sans-serif" size="1"><b>Matt Alonso &lt;<a href="mailto:matt.alonso@GMAIL.COM" target="_blank">matt.alonso@GMAIL.COM</a>&gt;</b></font><br>
<font face="sans-serif" size="1">Sent by: <a href="mailto:GRADSUSR@LIST.CINECA.IT" target="_blank">GRADSUSR@LIST.CINECA.IT</a></font><p><font face="sans-serif" size="1">03/16/2008 08:40 PM</font></p><table border="1"><tbody><tr valign="top">
<td bgcolor="white"><div align="center"><font face="sans-serif" size="1">Please respond to<br><a href="mailto:GRADSUSR@LIST.CINECA.IT" target="_blank">GRADSUSR@LIST.CINECA.IT</a></font></div></td></tr></tbody></table><br>
</td><td width="59%"><table width="100%"><tbody><tr valign="top"><td><div align="right"><font face="sans-serif" size="1">To</font></div></td><td><font face="sans-serif" size="1"><a href="mailto:GRADSUSR@LIST.CINECA.IT" target="_blank">GRADSUSR@LIST.CINECA.IT</a></font></td>
</tr><tr valign="top"><td><div align="right"><font face="sans-serif" size="1">cc</font></div></td><td></td></tr><tr valign="top"><td><div align="right"><font face="sans-serif" size="1">Subject</font></div></td><td><font face="sans-serif" size="1">NetCDF issue?</font></td>
</tr></tbody></table><br><table><tbody><tr valign="top"><td></td><td></td></tr></tbody></table><br></td></tr></tbody></table><div><div></div><br></div></blockquote></div><br>