<div dir="ltr">hi<div><br></div><div style>Sometime back I prepared a script that will plot tracks of multiple cyclones as shown in the attached pdf file. This script uses lat, lon coordinates saved in text file as in the attached file track1.asc to draw the track. You have to specify the coordinates of individual cyclone tracks in seperate files. </div>
<div style><br></div><div style>This script also uses a function named <a href="http://legend_lin_mkr.gs">legend_lin_mkr.gs</a> to draw legends on the figure. I am attaching that script also with this mail. Hope these scripts will help you.</div>
<div style><br></div><div style>martin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 August 2013 18:58, Lyndon Mark Olaguera <span dir="ltr"><<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><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" target="_blank">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>
<br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Martin V. Mathew<br>Research scholar<br>Centre for Oceans, Rivers, Atmosphere and Land Sciences (CORAL)<br>IIT Kharagpur<br>India.<br>
</div>