<div dir="ltr"><div><div>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....<br><br> 'reinit'<br>*<br> 'sdfopen <a href="http://pdsi.mon.mean.selfcalibrated.nc">pdsi.mon.mean.selfcalibrated.nc</a>'<br>
*<br> 'enable print grads.outfile'<br> say '** OUTPUT FILE: grads.outfile'<br> 'clear'<br> 'set grads off'<br> 'set mpdset lores' <br> 'set lon -106 -106'<br> 'set lat 40 40'<br>
*<br>*<br> 'define y1=pdsi.1(t=673)'<br><br><br></div>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.<br>
</div>Thanks in advance,<br clear="all"><div><div><div><div><div dir="ltr"><span style="color:rgb(106,168,79)"><b>Emily P. Wilson, Intern</b></span><br><span style="color:rgb(61,133,198)">Research and Conservation Department<br>
Denver Botanic Gardens<br>1007 York St.<br>Denver, CO 80206<br>720-865-3593</span></div></div>
</div></div></div></div>