[gradsusr] help with script

Jeff Duda jeffduda319 at gmail.com
Wed Jun 26 17:39:49 EDT 2019


I don't know about line 4, per se, but this command has a syntax error in
it:

      ‘set vpage' left rt  bot tp

You cut the command off too early and need to fill in the spaces between
the arguments. A proper version is:
      ‘set vpage 'left' 'rt' 'bot' 'tp

See if that removes the error.

Jeff Duda


On Wed, Jun 26, 2019 at 3:29 PM Alan Robock <robock at envsci.rutgers.edu>
wrote:

> 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
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190626/8c9164d5/attachment.html>


More information about the gradsusr mailing list