[gradsusr] City plotter - Dan Leins
Galebonwe Ramaphane
GRamaphane at gov.bw
Tue Mar 13 03:51:15 EDT 2012
Dick,
If you have several cities to plot, you could use the attached scipt.
You also need a text file containing the world coordinates and
corresponding names of the cities.
From: gradsusr-bounces at gradsusr.org
[mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Stephen McMillan
Sent: Monday, March 12, 2012 11:36 PM
To: dick at wismeijer.com; GrADS Users Forum
Subject: Re: [gradsusr] City plotter - Dan Leins
Dick,
I believe the error is due to no values in your world-coordinate
variables. I get the same error you do, unless I initialize lon.start
and lat.start with real numbers. For example, try running it again
after adding this line before the query line (for example):
lon.start=12.5;lat.start=45.2
Good luck
Stephen Mc
On Mon, Mar 12, 2012 at 4:42 PM, D. Wismeijer <dick at wismeijer.com>
wrote:
Hi Grads users
The following code delivers the error message described below. Any help
to identify the coding error would be appreciated.
Code:
'q w2xy 'lon.start' 'lat.start
xx.start=subwrd(result,3)
yy.start=subwrd(result,6)
*Mark each point with a period
*say 'This means x is 'xx.start' and y is 'yy.start
'set string 1 c 10 0'
'set strsiz 0.3'
'draw string 'xx.start' 'yy.start+0.1' .'
Results in:
Querry Error: Syntax is QUERRY W2XY LonLat
Non-numeric args to numeric operation
Any help would be appreciated
Rgds
Dick
_______________________________________________
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/20120313/cbed3541/attachment-0003.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cities.txt
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20120313/cbed3541/attachment-0003.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: city_plot.gs
Type: application/octet-stream
Size: 1512 bytes
Desc: city_plot.gs
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20120313/cbed3541/attachment-0003.obj
More information about the gradsusr
mailing list