-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another zarr 3 "Unsupported type for store_like ..." issue #2748
Comments
@ktyle - if you remove the In [2]: import xarray as xr
In [3]: import fsspec
In [4]: import zarr
In [5]: url1 = 'hrrrzarr/sfc/20250121/20250121_18z_anl.zarr/2m_above_ground/TMP/2m_above_ground'
...: url2 = 'hrrrzarr/sfc/20250121/20250121_18z_anl.zarr/2m_above_ground/TMP'
...:
...: fs = fsspec.filesystem("s3", asynchronous=True)
...: store1 = zarr.storage.FsspecStore(fs, path=url1)
...: store2 = zarr.storage.FsspecStore(fs, path=url2)
...:
...: ds = xr.open_mfdataset([store1, store2],engine='zarr')
In [6]: ds
Out[6]:
<xarray.Dataset> Size: 8MB
Dimensions: (projection_y_coordinate: 1059,
projection_x_coordinate: 1799)
Coordinates:
* projection_x_coordinate (projection_x_coordinate) float64 14kB -2.698e+0...
* projection_y_coordinate (projection_y_coordinate) float64 8kB -1.587e+06...
Data variables:
TMP (projection_y_coordinate, projection_x_coordinate) float32 8MB dask.array<chunksize=(150, 150), meta=np.ndarray>
forecast_period timedelta64[ns] 8B ...
forecast_reference_time datetime64[ns] 8B ...
height float64 8B ...
pressure float64 8B ...
time datetime64[ns] 8B ... I don't think Xarray supports passing a |
@jhamman perfect! That did the trick. 🥇 |
It probably should though! There are times when that would be very convenient. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, similar to #2706, I'm wondering how I might be able to migrate an existing workflow from v2 to v3.
In short, this is how I would open a particular pair of Zarr files from an AWS bucket in v2:
Following @jhamman 's advice in the above-referenced issue, I tried:
This fails with:
Is there a way to do this in Zarr 3?
The text was updated successfully, but these errors were encountered: