How to make a script file

Wansang Ryu wansryu at GMAIL.COM
Mon Oct 5 15:51:45 EDT 2009


Should the first line have 'function' command like 'function test (args)'?
Is there any command to finish script file?

Thanks,

Wansang


On Mon, Oct 5, 2009 at 2:44 PM, Ivan Toman <ivtoman at inet.hr> wrote:

> Hey,
>
> you need to write plain text file with software like notepad. In that
> file, you put the same commands that you put in grads command prompt,
> just they need to be between these characters: ' '
>
> For example, if you wish to plot temperature from command prompt, you
> will give this command:
> d tmp2m
>
> In grads script, that should read:
> 'd tmp2m'
>
> That's almost all, but there are some differences between command line
> and scipting commands, and also, of course, in scripts you can do lot
> more things like creating loops and using lot more tools (for example
> defining custom functions), that you cannot do on command line.
>
> Hope this helps. Also, please, read user manual here:
> http://www.iges.org/grads/gadoc/users.html
>
> And check some sample scripts to see how they work, for example:
> http://www.iges.org/grads/gadoc/library.html
>
> Bye, Ivan
>
>
>
>
> Wansang Ryu wrote:
> > Dear Users,
> >
> > I am a new to Grads.
> > I want to make a script file to save variables to a ASCII (*.txt) file.
> > Do I write a script in Grads directly or in a software like notepad.
> >
> > And how I start to write it?
> > I think I'm really lost.
> > Please, teach me from the first step.
> >
> > Somebody help me!
> >
> > Wansang
> >
> > --
> > College Station, TX 77843-3147
> > Office: 305A CSA (Teague) Bldg
> > (979) 845-2719
>



--
Department of Geography
Texas A&M University
College Station, TX 77843-3147
(979) 845-2719
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/c2d22750/attachment.html 


More information about the gradsusr mailing list