[gradsusr] help with script

Alan Robock robock at envsci.rutgers.edu
Wed Jun 26 17:27:13 EDT 2019


Hi,

I am having trouble with scripting language.  My script is to write 
postage-stamp size maps on one page, and I call it postagescript.  When 
I try to run it I get:

ga-> run postagescript
Syntax Error
   Error occurred on line 4
   In file postagescript

Here is the script:

i = 1
tp = 9.8
while ( i <= 8 )
    tp = tp – ( i - 1 ) * 1.2
    bot = tp – 1.2
    j = 1
    left = 0.5
    while ( j <= 5 )
      left = left + ( j - 1 ) * 1.5
      rt = left + 1.5
      ‘set vpage' left rt  bot tp
      e = (i-1)*5 + j
      ‘set E’ e
      'set grads off'
      ‘d ensmn’e ‘- tale5yrmn.2’
      ‘draw title DPLE ensemble anomaly’ e
      j = j + 1
    endwhile
    i = i + 1
endwhile

Help.

-- 
Alan
_________________________________________________________________________
Alan Robock, Distinguished Professor
   Associate Editor, Reviews of Geophysics
Department of Environmental Sciences             Phone: +1-848-932-5751
Rutgers University                    E-mail: robock at envsci.rutgers.edu
14 College Farm Road            http://people.envsci.rutgers.edu/robock
New Brunswick, NJ 08901-8551  USA      ☮  http://twitter.com/AlanRobock




More information about the gradsusr mailing list