[gradsusr] GrADS

Heiner Körnich heiner at misu.su.se
Tue Mar 29 14:42:28 EDT 2011


Dear Gamal,

yes, it is possible. I think you have to use:
grads -lc 'run rain.gs ophelia.ctl'

In your rain.gs you have to use the "function main" with arguments. Here is
an example:
* Grads-script for zonal mean and its deviation
function main(args)

first=subwrd(args,1)
second=subwrd(args,1)

say 'first argument: 'first
say ' second argument: ' second


return

Regards,
Heiner

On Tue, Mar 29, 2011 at 8:06 PM, Dr.Gamal El Afandi
<gamalafandy at yahoo.com>wrote:

> Hi All,
>
> 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:
> grads -lc run rain.gs<https://www.exchange.iu.edu/owa/redir.aspx?C=56848621cd6b423db38fd32725fa2f37&URL=http%3a%2f%2frain.gs>ophelia1.ctl
>
>
>
> With my kind regards
>
> Gamal
>
> _____________________________________________________
>   *Dr.Gamal Salah El Afandi,Senior Researcher.
> Data to Insight Center of Pervasive Technology Institute*
> *Indiana University Bloomington USA*
> *2719 E 10th St.
> Innovation Center *
>  *Room 130C. *
> *Bloomington, IN  47408,USA*
>
> *Phone:+1 812-856-1953*
>
> *Fax: +1 812-856-1735*
>
> **
> *http://as.cms.rtinfo.indiana.edu/d2i/people*
> *http://pervasivetechnologylabs.iu.edu/d2i/people*
>
> * *
> *Al Azhar University *
> *Faculty of science at Cairo *
> *Department of Astronomy and Meteorology*
> *Nasr City,Postal Code 11884*
> *Cairo,**Egypt*
> http://www.uazhar.edu.eg/astmet/Gamal.htm
> *http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html*<http://www.itap.purdue.edu/pto/NATO_KEEO/index_en.html>
> http://www.ucar.edu/governance/iap/iapreps.shtml
> *Tel. 0020238701259 Home   Tel. 0020222618163 Work
> Tel. 0020103770593 Cell      Fax 0020222629356 Work *
> *________________________________________________________
> *
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Heiner Körnich
Dept. of Meteorology            Tel:  +46 8 164333
Stockholms University, SE-106 91 Stockholm, Sweden
Email: heiner at misu.su.se   www.misu.su.se/~heiner/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110329/95ac2fce/attachment-0003.html 


More information about the gradsusr mailing list