<div dir="ltr">Hi Sir James,<div>The code is working now,...</div><div>I have yet another task to do...<br><div>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.. </div>
<div>i have to compare 3 ctl files. </div><div>As of now, i can only plot one..How do i plot three tracks in grads?</div><div><br></div><div>I will appreciate any help.</div><div>Thanks in advance,</div><div>Lyndon</div>
</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 25, 2013 at 1:44 AM, James T. Potemra <span dir="ltr"><<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lydon:<br>
<br>
Is this the entire script? I think you will need to first open a<br>
file and display something. This will set the scaling environment<br>
in the display. As the script is, your query statement is likely<br>
not returning a number but an error, e.g.,<br>
<br>
'q w2xy 'lon1' 'lat1<br>
<br>
returns:<br>
"No scaling environment"<br>
<br>
and thus lon1 is set to "environment". Try to open a data<br>
set first, set the lat/lon/time/alt, display a variable, then run<br>
your script below.<br>
<br>
Jim<br>
<div class="im"><br>
On 8/23/13 11:32 PM, Lyndon Mark Olaguera wrote:<br>
> i=0<br>
> res=read('urbeye4.txt')<br>
> while(sublin(res,1)!=2)<br>
> line = sublin(res,2)<br>
> lat1=subwrd(res,3)<br>
> lon1=subwrd(res,4)<br>
> 'q w2xy 'lon1' 'lat1<br>
> xpos1 = subwrd(result,3)<br>
> ypos1 = subwrd(result,6)<br>
> res=read('urbeye4.txt')<br>
> 'draw wxsym 41 'xpos1' 'ypos1' 0.3 1'<br>
> if (i>0)<br>
> 'set line 1 1 3'<br>
> 'draw line 'xpos1' 'ypos1' 'xpos2' 'ypos2<br>
> endif<br>
> xpos2=xpos1<br>
> ypos2=ypos1<br>
> i=i+1<br>
> endwhile<br>
<br>
</div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br></div>