xarray-contrib / xdggs

Xarray extension for DGGS
https://xdggs.readthedocs.io
Apache License 2.0
79 stars 14 forks source link

interactive plotting with `lonboard` #67

Closed keewis closed 1 month ago

keewis commented 1 month ago

As described in #11, this allows us to plot a single map using lonboard. This works by computing the cell boundaries in advance, then use lonboard.SolidPolygonLayer to visualize them.

In the future, we might be able to extend this by attaching sliders for any additional dimensions, as lonboard is really fast when it comes to changing the color of the polygons.

Also, as a future task, we should try to allow making use of the native support for H3 cell ids in deck.gl (and extend that to support healpix and maybe other DGGS), which should get rid of a lot of the data transfer between the python kernel and the browser, and computing cell boundaries is also very expensive.

Still missing:

tinaok commented 1 month ago

Hi, thanks @keewis @kylebarron , We will try to use this functionality to solve this issue https://github.com/destination-earth/DestinE_ESA_GFTS/issues/56 @keewis showed us the example notebook here https://github.com/tinaok/xdggs_examples/blob/main/visualisation/xdggs-explore-demo.ipynb Apart from that I can't use bounding box of latitude and longitude with .sel , my main wish list is to be able to use the global view, it would be super cool if we can demo it with DestinE ClimateDT healpix global earth data...

cc: @yellowcap @olafveerman

keewis commented 1 month ago

looks like the most recent commits got the tests to pass. I'll merge later this evening.

For future PRs:

kylebarron commented 1 month ago
  • [ ] figure out how to install arro3-core from conda-forge on osx-arm

I made https://github.com/conda-forge/arro3-core-feedstock/issues/7

There must be something in the recipe that's preventing the recipe from building for osx-arm, but I don't know what it is. If you had interest in exploring why or how to fix it that would be great

tinaok commented 1 month ago

looks like the most recent commits got the tests to pass. I'll merge later this evening.

Yeserday when i tried i saw index of healpix id in the figure, but i do not see it. Is this normal? How can I have healpix id together with lat/lon/data value?

スクリーンショット 2024-10-13 19 04 36

https://github.com/tinaok/xdggs_examples/blob/main/visualisation/xdggs-explore-demo.ipynb

keewis commented 1 month ago

good catch, @tinaok, I appear to have accidentally dropped the cell ids from the hover table. I've extended the list of tasks left for future PRs, but for now I'll go ahead and merge.