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

Add doc for using cuDF & cuSpatial to calculate Haversine Distance #1249

Closed

Conversation

taureandyernv
Copy link
Contributor

Description

This PR will add documentation to help users take point data form cuDF and use it with the cuSpatial GeoSeries for calculating haversine distance

Closes #1248

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@taureandyernv taureandyernv requested a review from a team as a code owner August 3, 2023 03:20
@github-actions github-actions bot added the Python Related to Python code label Aug 3, 2023
@isVoid
Copy link
Contributor

isVoid commented Aug 3, 2023

Thanks @taureandyernv ! Can you retarget to 23.10? We cannot open new PRs for 23.08 at burn down.

@taureandyernv taureandyernv changed the base branch from branch-23.08 to branch-23.10 August 3, 2023 03:43
@taureandyernv taureandyernv requested review from a team as code owners August 3, 2023 03:43
@taureandyernv
Copy link
Contributor Author

Actually, this example can be minimized and maybe the example added to the user guide. Thoughts @thomcom, @isVoid?

rebased @isVoid. Will resolve the conflicts tomorrow

Copy link
Contributor

@isVoid isVoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the contribution. If only to show case the usage of haversine distance, this is a duplication of the existing haversine section in cuspatial_api_examples.ipynb. However, we certainly need a section to show the joint usage of cudf dataframe and cuspatial APIs and this is a good candidate. My thoughts are to show the canonical use case of:

Separate lon/lat Coordinates in cudf dataframe -> interleave_columns() -> from_points_xy -> API
And
Interleaved coordinate of cupy array -> from_points_xy -> API.

Contributions welcome!

python/cuspatial/cuspatial/core/spatial/distance.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python Related to Python code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[DOC]: Add best practices documentation for haversine distances in geoseries with cudf
2 participants