<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><br></div><div>Thank you so much, It's very useful</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: tahoma,new york,times,serif; background-color: transparent; font-style: normal;">Guisseppe V.<br></div>  <div style="font-family: tahoma, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Jeff Duda &lt;jeffduda319@gmail.com&gt;<br> <b><span style="font-weight: bold;">Para:</span></b> Guisseppe Arturo Vasq. &lt;hibiki_inuyasha@yahoo.es&gt;; GrADS Users Forum &lt;gradsusr@gradsusr.org&gt; <br> <b><span style="font-weight: bold;">Enviado:</span></b> Jueves 11 de octubre de 2012 18:32<br> <b><span style="font-weight:
 bold;">Asunto:</span></b> Re: [gradsusr] Meaning of "FUNCTION MAIN(args)"<br> </font> </div> <br><div id="yiv415203940"><a rel="nofollow" target="_blank" href="http://www.iges.org/grads/gadoc/script.html">http://www.iges.org/grads/gadoc/script.html</a>&nbsp;is a good place to get started, namely, the section on functions.<div><br></div><div>Furthermore, if you surround your entire script code in a function (call it whatever you want, but MAIN is a common name), any args within the function call can get passed into the script code from the command line instead of having to set them in the code or ask the user to input them after invoking the script. &nbsp;It makes for a nice easy way to call a grads script from some other scripting language like C-shell with the flexibility of using whatever arguments you want.</div>
<div><br></div><div>Jeff Duda<br><br><div class="yiv415203940gmail_quote">On Thu, Oct 11, 2012 at 5:25 PM, Guisseppe Arturo Vasq. <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:hibiki_inuyasha@yahoo.es" target="_blank" href="mailto:hibiki_inuyasha@yahoo.es">hibiki_inuyasha@yahoo.es</a>&gt;</span> wrote:<br>
<blockquote class="yiv415203940gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:tahoma, new york, times, serif;"><div style="font-family:tahoma,;font-size:10pt;">
Hi, all</div><div style="font-family:tahoma,;font-size:10pt;">&nbsp;</div><div><div><font face="tahoma, new york, times, serif">I'm new in grads and i was looking for some scripts to make my own scripts, but i have a problem i don't know how to interpret "FUNCTION MAIN(args)" .... what does it want to say? ..... anyone could explain me with some examples....&nbsp;</font></div>
<div><font face="tahoma, new york, times, serif"><br></font></div><div><font face="tahoma, new york, times, serif">thank so much</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
<font face="tahoma, new york, times, serif"><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><font face="tahoma, new york, times, serif">Guisseppe Vasquez V.</font></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><font face="tahoma, new york, times, serif">Agraria University, Lima-Peru</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;">
<font face="tahoma, new york, times, serif"><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:tahoma,;"><font face="tahoma, new york, times, serif"><br>
</font></div></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a rel="nofollow" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a rel="nofollow" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>
</div>
</div><br><br> </div> </div>  </div></body></html>