[ncl-talk] gc_clkwise problem
Mary Haley
haley at ucar.edu
Thu Oct 27 15:56:53 MDT 2016
Dave,
I see you reported the other problem awhile back, and it hasn't been fixed,
so I modified the ticket to include your new email and we'll see if we can
get it fixed for 6.4.0.
We just fixed an issue with gc_latlon, so we might be able to piggy-back on
that knowledge to fix this one.
Thanks for the info,
--Mary
On Wed, Oct 26, 2016 at 8:11 PM, Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:
> NCL support,
>
> I am using NCL 6.3.0 on recent versions of both Mac OS and Linux.
> gc_clkwise returns the wrong value for this simple clockwise polygon:
>
> ncl 1> lats=(/8,15,5,0/)
> ncl 2> lons=(/38,130,130,38/)
> ncl 3> print (gc_clkwise(lats,lons))
> (0) False
>
> However, the correct value is returned for the same polygon, with the
> order of coordinates simply rotated by one position:
>
> ncl 4> lats=(/0,8,15,5/)
> ncl 5> lons=(/38,38,130,130/)
> ncl 6> print (gc_clkwise(lats,lons))
> (0) True
>
> This may be related to a similar gc_clkwise problem that was assigned to JIRA
> NCL-1699. Please add this case to that ticket. Thank you.
>
> --Dave
>
> _______________________________________________
> 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/20161027/4d6dfd5d/attachment.html
More information about the ncl-talk
mailing list