[gradsusr] Invalid Line coordinate

James T. Potemra jimp at hawaii.edu
Sat Aug 24 13:44:39 EDT 2013


Lydon:

Is this the entire script?  I think you will need to first open a
file and display something.  This will set the scaling environment
in the display.  As the script is, your query statement is likely
not returning a number but an error, e.g.,

'q w2xy 'lon1' 'lat1

returns:
"No scaling environment"

and thus lon1 is set to "environment".  Try to open a data
set first, set the lat/lon/time/alt, display a variable, then run
your script below.

Jim

On 8/23/13 11:32 PM, Lyndon Mark Olaguera wrote:
> i=0
> res=read('urbeye4.txt')
> while(sublin(res,1)!=2)
>   line = sublin(res,2)
>   lat1=subwrd(res,3)
>   lon1=subwrd(res,4)
>  'q w2xy 'lon1' 'lat1
>   xpos1 = subwrd(result,3)
>   ypos1 = subwrd(result,6)
> res=read('urbeye4.txt')
> 'draw wxsym 41 'xpos1' 'ypos1' 0.3 1'
> if (i>0)
> 'set line 1 1 3'
> 'draw line 'xpos1' 'ypos1' 'xpos2' 'ypos2
> endif
>   xpos2=xpos1
>   ypos2=ypos1
>  i=i+1
> endwhile




More information about the gradsusr mailing list