[gradsusr] Loop help
Emily Wilson
wilson.emily.parker at gmail.com
Tue Jul 2 16:42:38 EDT 2013
Hello! I need help formatting a loop command in a GrADS script. I am using
GrADS to extract PDSI data from a NetCDF file. My script so far looks like
this....
'reinit'
*
'sdfopen pdsi.mon.mean.selfcalibrated.nc'
*
'enable print grads.outfile'
say '** OUTPUT FILE: grads.outfile'
'clear'
'set grads off'
'set mpdset lores'
'set lon -106 -106'
'set lat 40 40'
*
*
'define y1=pdsi.1(t=673)'
Now I want to define y1 thru y1260 with corresponding t= values starting at
673 and ending with 1936. Instead of typing all of this out, I know I can
use a loop but I do not no how to format that code. Could someone please
help me format this loop.
Thanks in advance,
*Emily P. Wilson, Intern*
Research and Conservation Department
Denver Botanic Gardens
1007 York St.
Denver, CO 80206
720-865-3593
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130702/02fd4a8d/attachment-0003.html
More information about the gradsusr
mailing list