How to read zarr? #511
-
import xarray as xr read zarrds = xr.open_zarr(r'D:\work\data\test.zarr') I want to read zarr by COGReader, but Error !!!with COGReader(None,dataset=ds) as image: ################################# |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Rio-tiler only accept rasterio object not fsspec ones. Have a look on the cogeotiff/rio-tiler-fs project Also there is no guarantee that rio-tiler will fully support Zarr dataset because GDAL support is somehow complicated (it splits the dataset in subdataset only for dataset with more than 2 dim) See #453 Edit: oh I miss read what you were doing, but almost the same answer rio-tiler only accept rasterio object not xarray ones I'm planning to support Zarr at some point but the specification and GDAL native support makes it non trivial |
Beta Was this translation helpful? Give feedback.
Rio-tiler only accept rasterio object not fsspec ones.
Have a look on the cogeotiff/rio-tiler-fs project
Also there is no guarantee that rio-tiler will fully support Zarr dataset because GDAL support is somehow complicated (it splits the dataset in subdataset only for dataset with more than 2 dim)
See #453
Edit: oh I miss read what you were doing, but almost the same answer rio-tiler only accept rasterio object not xarray ones
I'm planning to support Zarr at some point but the specification and GDAL native support makes it non trivial