batch output for list of files and lat-lons

Sestak, Michael L CIV 63134 michael.l.sestak at NAVY.MIL
Thu Jan 8 10:59:39 EST 2009


Look at grads scripting in the online manual.  You can use a while loop to read your lat lon file using thr read function and then use ordinary grads commands to make your displays.



From: Stephen Piper
Sent: Thu 1/8/2009 7:32
To: GRADSUSR at LIST.CINECA.IT
Subject: batch output for list of files and lat-lons


Hi,

I want to extract annual average vertical profiles from a monthly
binary file for a list of lat-lon locations.
I have a working .ctl file that works fine if I invoke it
interactively in Mac Unix:

~piper/bin/grads
g>open my.ctl
g>set lat 45
g>set lon
g>set z 1 9
g> set gxout print
g>d ave(bioa,t=1,t=12)

Now how can I do this for a long list of lat-lons for several
different binary files instead of
typing each one in interactively?  ie., how can I invoke grads so
that I can give it a prepared
list, and don't have
to interactively enter each file and lat-lon pair?

Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090108/9877ccbb/attachment.html 


More information about the gradsusr mailing list