<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Imagine this will be difficult for anyone to work out based on those 3 pasted lines. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">What is nh ? Are you sure nh is ever less than or equal to 5. </div><div class="gmail_default" style="font-family:verdana,sans-serif">What are indexes ? Is this related to nh in some way? </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">As always reply to ncl-talk. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 23, 2015 at 8:23 AM, Melissa Lazenby <span dir="ltr"><<a href="mailto:M.Lazenby@sussex.ac.uk" target="_blank">M.Lazenby@sussex.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi All NCL Users
<div><br>
</div>
<div>I have created a plot with ship tracks as dots and winds overlaid over them.</div>
<div><br>
</div>
<div>I wanted to join the last 5 points (i.e. ship tracks) so that I can create a trail of where the ship had been the last 5 timesteps.</div>
<div><br>
</div>
<div>I am not sure how to do it. I have used this if statement but it does not create any lines between the last 5 points of the ship tracks?</div>
<div><br>
</div>
<div>If statement to create lines between the last 5 ship dots:</div>
<div>if(dimsizes(nh).le.5)then ;where nh is the loop for the number of hours for the ship tracks</div>
<div>gsn_polyline(wks,plot,lon(indexes),lat(indexes),gres)</div>
<div> end if</div>
<div><br>
</div>
<div>Many thanks in advance.</div>
<div><br>
</div>
<div>Kindest Regards</div><span class="HOEnZb"><font color="#888888">
<div>Melissa</div>
</font></span></div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>