<div class="gmail_quote">On Sun, Jun 21, 2009 at 7:52 AM, Muhammad Rahiz <span dir="ltr">&lt;<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear GrADS users,<br>
<br>
Instead of specifying a file (e.g. &#39;ga&gt; open file1.ctl&#39;), I want GrADS to<br>
automatically select the input file (e.g. file1, file2) within the folder.<br>
Also I want it to generate the output file e.g. file1, file2) based on the<br>
same name as the input file.<br>
<br>
In shell, I can issue the wildcard e.g. &#39;*.ctl&#39;. Any similar commands in GrADS?<br></blockquote><div><br></div><div>The *pygrads* shell works exactly in this way,</div><div><br></div><div>% pygrads *.ctl</div><div>
<br></div><div>will start pygrads and open all the files specified on the command line. You can write a wrapper shell script that does the same thing. You will need to write a <a href="http://mopen.gs">mopen.gs</a> grads script that opens multiple files, and use the &quot;-c&quot; command line option of grads to invoke mopen, passing the list of files. </div>
<div><br></div><div>     Arlindo</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
Muhammad Rahiz<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>