-
Notifications
You must be signed in to change notification settings - Fork 7
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
Evaluate if xddgs healpix code can be ported to javascript #98
Comments
Hi @yellowcap Thats a great idia |
Any pointers of how to go from Healpix ID to polygon would be quite helpful. I was also wondering if there are some pre-computed layers with healpix geometries in a shapfile/geojson type format, because the grids themselves are static and could be pre-computed. |
not that I'm aware of, but this should be pretty easy to create (I'd write to |
Thanks @keewis great idea to just generate the necessary layers directly!
I have seen this, but if I got it correctly, this is ultimatively being computed in C++, so to understand the actual contruction of the geometry and porting to Javascript, we will probably have to digg into the C code. Probably its faster to pre-generate the levels that we want to use. |
you could also use a rust library ( |
Thanks @keewis good idea. @danielfdsilva something to evaluate on the Javascript side? |
The xarray-xddgs library has python functions to create polygons based on heaplix cell ids.
If we can port this to javascript we could do healpix visualizations in js applications.
From a quick look, it seems like xddgs relies on heaply for the caclulations, which in turn is bundles the HEALPix C++ library. So porting to javascript might not be simple because the heavy lift of the healpix calculations happens in C at the moment.
The text was updated successfully, but these errors were encountered: