[pyngl-talk] >>> Ngl.gc_inout(30, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 120, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(31, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([1], dtype=int32) >>> Ngl.gc_inout(30, 121, [30, 70, 70, 30, 30], [120, 120, 160, 160, 120]) array([0], dtype=int32)
cgc at mail.ustc.edu.cn
cgc at mail.ustc.edu.cn
Sat Dec 7 23:03:34 MST 2019
Hi,
I found a bug in the pyngl when I used the gc_inout.
For example:
>>> Ngl.gc_inout(30,120,[30,70,70,30,30],[120,120,160,160,120])
array([1], dtype=int32)
>>> Ngl.gc_inout(31,120,[30,70,70,30,30],[120,120,160,160,120])
array([1], dtype=int32)
>>> Ngl.gc_inout(31,121,[30,70,70,30,30],[120,120,160,160,120])
array([1], dtype=int32)
>>> Ngl.gc_inout(30,121,[30,70,70,30,30],[120,120,160,160,120])
array([0], dtype=int32)
Obviously the point 30N 121E is in the box?
So why it is?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20191208/72b85abd/attachment.html>
More information about the pyngl-talk
mailing list