[gradsusr] help with script

Mark Sponsler msponsler at comcast.net
Wed Jun 26 20:31:26 EDT 2019


Hi Alan,
Try downloading EditPlus (https://www.editplus.com).
I use it all the time for building/editing Grads scripts.
It will expose any funky characters in your script (including hidden tabs) and provides line numbers. 

I think it's a free download.
Hope that helps,
Mark

On June 26, 2019 4:06:23 PM PDT, Alan Robock <robock at envsci.rutgers.edu> wrote:
>Dear Jeff and Bill,
>
>Thanks for the advice, but it still did not work.  I did not have any
>tabs to start with.
>
>It turns out I first wrote this in Word and then pasted into a text
>file on the computer.  The minus sign was converted into a long - sign
>in Word, and grads did not like that.  I also made sure all the ' were
>not the fancy ones.  Then it ran.
>
>Alan
>
>
>
>
>On 6/26/19 3:53 PM, Bill Reilly wrote:
>Alan:
>
>Tabs are not allowed... Replace the tabs with 2 spaces... Try this:
>
>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
>
>Try this and see if it works.
>
>Regards,
>
>Bill
>
>
>--
>
>Bill Reilly
>
>(+34) 686-110-748
>
>bill at passageweather.com<mailto:bill at passageweather.com>
>www.passageweather.com<http://www.passageweather.com>
>
>bill at brwebworks.com<mailto:bill at brwebworks.com>
>www.brwebworks.com<http://www.brwebworks.com>
>
>
>
>On 26/06/2019 23:27, Alan Robock 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.
>
>
>
>
>
>
>_______________________________________________
>gradsusr mailing list
>gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
>http://gradsusr.org/mailman/listinfo/gradsusr

Thanks,
Mark Sponsler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190626/4c5b611e/attachment.html>


More information about the gradsusr mailing list