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

cell_to_child_pos() version 4 of the Python API client #794

Open
kylelindgren opened this issue Oct 27, 2023 · 3 comments
Open

cell_to_child_pos() version 4 of the Python API client #794

kylelindgren opened this issue Oct 27, 2023 · 3 comments

Comments

@kylelindgren
Copy link

I'm trying to recover the absolute position of a neighbor with respect to a center cell (i.e. 1-6 index) and thought the cell_to_child_pos() function would be useful for this, following the definition in the docs. However, the function doesn't appear to exist in '4.0.0b1' or '4.0.0b2'. Looking for clarification on the state of this function or any other solutions to achieving this absolute position recovery.

@isaacbrodsky
Copy link
Collaborator

Unfortunately that function was introduced in version 4.1.0 and I do not believe a new Python binding version has been released since that. When the Python bindings are updated that function should be included, as it is part of the H3 API.

Cc @ajfriend

@kylelindgren
Copy link
Author

Thank you for the quick response. Couple of follow-ups:

  • Is there an anticipated release date for 4.1.0 Python bindings?
  • cell_to_local_ij() is available with 4.0.x but I'm not understanding the output. Can you point me to more documentation than what's here?

@nrabinowitz
Copy link
Collaborator

Thank you for the quick response. Couple of follow-ups:

  • Is there an anticipated release date for 4.1.0 Python bindings?
  • cell_to_local_ij() is available with 4.0.x but I'm not understanding the output. Can you point me to more documentation than what's here?

You can see some discussion of the coordinates here, but we don't have more docs that I know of. Essentially cell_to_local_ij gives you 2d axial coordinates you can use to traverse cells in a limited, local space (generally speaking, on the same or adjacent faces of the icosahedron). This is an advanced feature, and in general better avoided because of the limitations in the coordinate system it returns, but it can be very useful in some cases, e.g. applying ML or computer vision algorithms that require 2d matrix input.

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

3 participants