Minimal, reproducible code sample, a copy-pastable example if possible
importzarrimportfsspec# publicurl='https://g-c70289.0da32.08cc.data.globus.org/pyqg_ensemble/001.zarr'# this errorsstore=zarr.storage.FSStore(url)
# because of thisfs=fsspec.implementations.http.HTTPFileSystem()
fs.isdir(url) # -> False# however, there is consolidated metadatadata=fs.get_mapper(url)['.zmetadata']
Problem description
We often store Zarr on HTTP servers that don't support directory listing. This works because Zarr consolidated metadata tells us everything we need to know about the data available, so no listing is required.
However, Zarr won't let me create such a Store, as shown in the example above.
There needs to be a workaround to allow unlistable http stores with consolidated metadata.
Version and installation information
Please provide the following:
- zarr 2.11.0
- fsspec 2022.02.0
This came up in pangeo-forge/pangeo-forge-recipes#222
Minimal, reproducible code sample, a copy-pastable example if possible
Problem description
We often store Zarr on HTTP servers that don't support directory listing. This works because Zarr consolidated metadata tells us everything we need to know about the data available, so no listing is required.
However, Zarr won't let me create such a Store, as shown in the example above.
There needs to be a workaround to allow unlistable http stores with consolidated metadata.
Version and installation information
Please provide the following:
This came up in pangeo-forge/pangeo-forge-recipes#222