Closed mpiannucci closed 2 years ago
Current Downsides to this approach:
Custom mapbox-gl-js source loading zarr tiles from xpublish:
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.
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 inxpublish/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 :)