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

DGGS-specific methods #27

Open
keewis opened this issue Nov 27, 2023 · 2 comments
Open

DGGS-specific methods #27

keewis opened this issue Nov 27, 2023 · 2 comments

Comments

@keewis
Copy link
Collaborator

keewis commented Nov 27, 2023

DGGS have a lot in common, but we might have a need for methods and properties that are specific to a certain DGGS. For example, healpix has multiple indexing schemes and so it might make sense to expose a method that allows converting between each of them. Another example would be H3's conversion of integer IDs to string.

This would be very easy to add to the index itself, but we need to figure out a way to also expose that on the accessor.

@benbovy
Copy link
Member

benbovy commented Nov 28, 2023

Maybe we could expose system-specific methods via their own accessor? Like ds.healpix in this case.

@keewis
Copy link
Collaborator Author

keewis commented Nov 28, 2023

I guess that could work, but would have a less "standardized" feel to it. I'd say let's go with that (or ds.dggs.healpix.to_scheme) for now, and should we find a clean / good way to add additional methods onto the main namespace we can always change later.

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