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

Custom implementation on xdggs.decode for dggs plugin? #117

Open
tik65536 opened this issue Dec 20, 2024 · 0 comments
Open

Custom implementation on xdggs.decode for dggs plugin? #117

tik65536 opened this issue Dec 20, 2024 · 0 comments

Comments

@tik65536
Copy link

Heya @keewis ,

Does it make sense / logical to let different dggs(s) implement their decoding method? Or do you have other suggestions on my case?

For my example, there are two possible cases on the input xarray dataset; one is already converted, and the drop_index method works fine; it just re-instantiates the DGGSIndex.
The second one is in 2D ( with x and y coordinates), which I must flatten for conversion. Currently, I am using the stack method as the conversion entry point, like the following :

ds.stack(cell_ids=[coords[0], coords[1]], index_cls=DGGSIndex)

Thx ~

Happy Holiday ~

Tik

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

1 participant