[gradsusr] get a syntax error using query w2xy
Stephen McMillan
smcmillan at planalytics.com
Thu Jun 14 12:12:30 EDT 2012
Kyle,
I ran your sample script as-is the first time, and got presumably the same
syntax error you noticed. However, I noticed there were extra (blank?)
characters after some of the lines in your script. After I removed them,
it worked fine. You might try that.
Good luck
Stephen Mc
On Thu, Jun 14, 2012 at 11:28 AM, Kyle Anderson <kanderson2572 at gmail.com>wrote:
> Hi all,
>
> I am just trying to have a map that shows daily precipitation over
> Argentina and also have some red circles to indicate a few station
> locations. Below I have the script I have been using with only one station
> for the draw mark command but I will be doing this for multiple stations.
> I did this for a map over North America and everything worked fine. Now
> trying for argentina I keep getting a syntax error for the line: 'q w2xy
> 'lon1' 'lat1 . As I said this worked fine for North America when I tried
> so not sure if this is something to do with the negative latitude now.
>
> Thank you for any help you can provide,
>
> Kyle
>
>
> 'open ArgentinaPrecip.ctl'
> *
> 'set display color white'
> 'c'
> *
> 'set grads off'
> 'set gxout shaded'
> 'set csmooth on'
> 'set mpdset hires'
> *
> 'set cmin 0.01'
> 'd apcpsfc'
> *
> 'draw title Daily Accumulated Precipitation (mm)'
> *
> 'set line 2'
> *
> style=3
> size=0.03
> *
> *Introduces world Coordinates
> lon1 =292
> lat1 =-35
> *Converts world coords to XY coords it will be recalculated each time the
> map changes
> 'q w2xy 'lon1' 'lat1
> say result
> *Loads the XY coords in x1 and y1
> x1 = subwrd(result,3)
> y1 = subwrd(result,6)
> *Draws a marker at x1 y1 position with selected size
> 'draw mark 'style' 'x1' 'y1' 'size
> *
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120614/8b180818/attachment-0003.html
More information about the gradsusr
mailing list