[ncl-talk] Ship tracks

Alan Brammer abrammer at albany.edu
Sun Aug 23 16:08:20 MDT 2015


Imagine this will be difficult for anyone to work out based on those 3
pasted lines.

What is nh ?  Are you sure nh is ever less than or equal to 5.
What are indexes ? Is this related to nh in some way?


As always reply to ncl-talk.

On Sun, Aug 23, 2015 at 8:23 AM, Melissa Lazenby <M.Lazenby at sussex.ac.uk>
wrote:

> 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
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150823/eaf1257c/attachment.html 


More information about the ncl-talk mailing list