[ncl-talk] Ship tracks

Melissa Lazenby M.Lazenby at sussex.ac.uk
Sun Aug 23 06:23:47 MDT 2015


Hi All NCL Users

I have created a plot with ship tracks as dots and winds overlaid over them.

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.

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?

If statement to create lines between the last 5 ship dots:
if(dimsizes(nh).le.5)then     ;where nh is the loop for the number of hours for the ship tracks
gsn_polyline(wks,plot,lon(indexes),lat(indexes),gres)
  end if

Many thanks in advance.

Kindest Regards
Melissa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150823/4765e73f/attachment.html 


More information about the ncl-talk mailing list