[gradsusr] Invalid Line coordinate

Lyndon Mark Olaguera olagueralyndonmark429 at gmail.com
Tue Aug 27 09:28:44 EDT 2013


Hi Sir James,
The code is working now,...
I have yet another task to do...
I would like to plot multiple tracks in grads..I have the location of the
eye and plotted the tracks using minimum sea level pressure..
i have to compare 3 ctl files.
As of now, i can only plot one..How do i plot three tracks in grads?

I will appreciate any help.
Thanks in advance,
Lyndon


On Sun, Aug 25, 2013 at 1:44 AM, James T. Potemra <jimp at hawaii.edu> wrote:

> 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
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130827/64ccc809/attachment-0003.html 


More information about the gradsusr mailing list