Dear Gamal,<br><br>yes, it is possible. I think you have to use:<br>grads -lc 'run <a href="http://rain.gs">rain.gs</a> ophelia.ctl'<br><br>In your <a href="http://rain.gs">rain.gs</a> you have to use the "function main" with arguments. Here is an example:<br>
* Grads-script for zonal mean and its deviation<br>function main(args)<br><br>first=subwrd(args,1)<br>second=subwrd(args,1)<br><br>say 'first argument: 'first<br>say ' second argument: ' second<br><br><br>
return <br><br>Regards,<br>Heiner<br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 8:06 PM, Dr.Gamal El Afandi <span dir="ltr"><<a href="mailto:gamalafandy@yahoo.com">gamalafandy@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000"><div></div>
<div>Hi All,</div>
<div> </div>
<div>Please let me know if it is possibel to run the .gs file with the following command althoough .ctl file is not in the .gs file:</div>
<div>grads -lc run <a href="https://www.exchange.iu.edu/owa/redir.aspx?C=56848621cd6b423db38fd32725fa2f37&URL=http%3a%2f%2frain.gs" target="_blank">rain.gs</a> ophelia1.ctl<br><br> </div>
<p><font face="times new roman, new york, times, serif">With my kind regards</font></p>
<p><font face="times new roman, new york, times, serif">Gamal</font></p>
<p><font face="times new roman, new york, times, serif">_____________________________________________________</font></p>
<div>
<div>
<div>
<div><font face="times new roman, new york, times, serif"><b><font size="-0"><font size="-0">Dr.Gamal Salah El Afandi,Senior Researcher.<br>Data to Insight Center<span> </span>of <span><span><span style="border-bottom:medium none;background:none transparent scroll repeat 0% 0%"><span>Pervasive Technology Institute</span></span></span></span></font></font></b></font></div>
<div><font face="times new roman, new york, times, serif"><b><span><span><span style="border-bottom:medium none;background:none transparent scroll repeat 0% 0%"><span>Indiana University Bloomington USA</span></span></span></span></b></font></div>
<div><b><font size="-0">2719 E 10th St.<br>Innovation Center </font></b></div>
<div>
<div><b><font size="3">Room 130C. </font></b></div></div>
<div><b><span style="border-bottom:medium none;background:none transparent scroll repeat 0% 0%"><font size="-0">Bloomington, IN 47408,USA</font></span></b></div>
<div><span style="border-bottom:medium none;background:none transparent scroll repeat 0% 0%">
<p class="MsoNormal"><span style="color:#76923c"><font size="-0"><font size="-0"><font size="-0"><font size="-0"><b><font color="#000000">Phone:+1 <span style="border-bottom:#366388 2px dotted"><a href="tel:812-856-1953" value="+18128561953" target="_blank">812-856-1953</a></span></font></b></font></font></font></font></span></p>
<p class="MsoNormal"><span><span style="border-bottom:#366388 2px dotted"></span><font size="-0"><font size="-0"><b><font color="#000000">Fax: <a href="tel:%2B1%20812-856-1735" value="+18128561735" target="_blank">+1 812-856-1735</a></font></b></font></font></span></p>
<p class="MsoNormal"><span><b></b></span> </p></span></div>
<div><span></span><b><u><font color="#0066cc"><a href="http://as.cms.rtinfo.indiana.edu/d2i/people" rel="nofollow" target="_blank">http://as.cms.rtinfo.indiana.edu/d2i/people</a></font></u></b></div>
<div><b><a href="http://pervasivetechnologylabs.iu.edu/d2i/people" rel="nofollow" target="_blank">http://pervasivetechnologylabs.iu.edu/d2i/people</a></b></div>
<p><b><font face="times new roman, new york, times, serif"> </font></b></p>
<div><b><font face="times new roman, new york, times, serif">Al Azhar University </font></b></div>
<div><b><font face="times new roman, new york, times, serif">Faculty of science at Cairo </font></b></div>
<div><b><font face="times new roman, new york, times, serif">Department of Astronomy and Meteorology</font></b></div>
<div><b><font face="times new roman, new york, times, serif">Nasr City,Postal Code 11884</font></b></div>
<div><font face="times new roman, new york, times, serif"><b>Cairo,</b><b>Egypt</b></font></div>
<div><a href="http://www.uazhar.edu.eg/astmet/Gamal.htm" rel="nofollow" target="_blank"><span style="background:#dceeff"><font color="#0000ff" face="times new roman, new york, times, serif">http://www.uazhar.edu.eg/astmet/Gamal.htm</font></span></a></div>
<div><u><font color="#0000ff" face="times new roman, new york, times, serif"><a href="http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html" rel="nofollow" target="_blank">http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html</a></font></u><a href="http://www.itap.purdue.edu/pto/NATO_KEEO/index_en.html" rel="nofollow" target="_blank"></a></div>
<div><a href="http://www.ucar.edu/governance/iap/iapreps.shtml" rel="nofollow" target="_blank"><font color="#0000ff" face="times new roman, new york, times, serif">http://www.ucar.edu/governance/iap/iapreps.shtml</font></a><br>
<b><font face="times new roman, new york, times, serif">Tel. 0020238701259 Home Tel. 0020222618163 Work <br>Tel. 0020103770593 Cell Fax 0020222629356 Work </font></b></div>
<div><b><font face="times new roman, new york, times, serif">________________________________________________________<br></font></b></div></div></div></div>
<div></div></div><br>
</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><br clear="all"><br>-- <br>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/~heiner/">www.misu.su.se/~heiner/</a><br>