asascience-open / restful-grids

Exploring modern RESTful services for gridded data
https://asascience.github.io/restful-grids/
MIT License
10 stars 3 forks source link

Zarr Tree Reproject #25

Closed mpiannucci closed 2 years ago

mpiannucci commented 2 years ago

This creates a POC working zarr tree API. It is currently hard coded to 256 pixel tiles, and uses rioxarray to reproject under the hood. There is a working example to get the map representation of ww3 and plot it at level 0 in xpublish/test_get_chunk.ipynb.

One thing that is not clear right now is why fetching the dataset is so slow, it seems to hang because of this failed request, which we dont handle cuz im not sure what should be returned for them. But getting the data works!!!! Enough to start work on a javascript client test :)

Screen Shot 2022-04-30 at 7 47 01 PM Screen Shot 2022-04-30 at 7 48 10 PM
mpiannucci commented 2 years ago

Current Downsides to this approach:

mpiannucci commented 2 years ago

Custom mapbox-gl-js source loading zarr tiles from xpublish:

Screen Shot 2022-05-02 at 3 58 34 PM

mpiannucci commented 2 years ago

And.... The holy grail (without any optimization) TURN ON THE METADATA CACHE IN THE TREE ROUTER BEFORE RUNNING OR ELSE ITS DUMB SLOW TO LOAD TILES.

zarr-animate