[gradsusr] City plotter - Dan Leins

D. Wismeijer dick at wismeijer.com
Mon Mar 12 17:43:39 EDT 2012


Hi Stephan,

Thanks for your quick response. However, unfortunately yr. suggestion does
not apply. I'm reading Lat, Lon from an external file and generate them as
follows:

 

lat.start=subwrd(rec,1)

lon.start=subwrd(rec,2)

 

The funny thing of all is that the output is not adversaly effected.
However, I don't like errors.

It's all based on the original script made by Dan Leins and calles 'City
Plotter'

Dick 

 

 

From: Stephen McMillan [mailto:smcmillan at planalytics.com] 
Sent: Monday, March 12, 2012 10: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/20120312/919f32a0/attachment-0003.html 


More information about the gradsusr mailing list