Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gc_inout issue #29

Open
sxcgc opened this issue Dec 8, 2019 · 4 comments
Open

gc_inout issue #29

sxcgc opened this issue Dec 8, 2019 · 4 comments

Comments

@sxcgc
Copy link

sxcgc commented Dec 8, 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?

@rbrownrigg
Copy link

rbrownrigg commented Dec 8, 2019 via email

@sxcgc
Copy link
Author

sxcgc commented Dec 11, 2019

But I can't understand the bug.

@rbrownrigg
Copy link

rbrownrigg commented Dec 11, 2019 via email

@sxcgc
Copy link
Author

sxcgc commented Dec 12, 2019

Oh, I understand it. Shortest distance is not along with the latitude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants