Skip to content

Bug when trying to open zarr files #454

@cmdupuis3

Description

@cmdupuis3

@cisaacstern @rabernat

Charles and I found a bug in trying to write the recipe in pangeo-forge/staged-recipes#239. Running the recipe throws an error, which he realized would also be triggered by running this:

import xarray as xr
import fsspec

file = xr.open_dataset(fsspec.open("https://g-402b74.00888.8540.data.globus.org/eddy/low_res.zarr"), engine="zarr")

which appears to be the current behavior, where the expected behavior would be:

file = xr.open_dataset("https://g-402b74.00888.8540.data.globus.org/eddy/low_res.zarr", engine="zarr")

The error I get is ValueError: Starting with Zarr 2.11.0, stores must be subclasses of BaseStore, if your store exposes the MutableMapping interface wrap it in Zarr.storage.KVStore. Got <OpenFile 'https://g-402b74.00888.8540.data.globus.org/eddy/low_res.zarr'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions