issues: 438166604
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
438166604 | MDU6SXNzdWU0MzgxNjY2MDQ= | 2927 | Data variables empty with to_zarr / from_zarr on s3 if 's3://' in root s3fs string | 1796208 | closed | 0 | 3 | 2019-04-29T06:31:34Z | 2019-06-27T20:07:20Z | 2019-06-27T20:07:20Z | NONE | I apparently have a bad habit of prepending my s3 strings with 's3://' (see #2740) To reproduce: ```python import numpy as np import xarray as xr import s3fs s3 = s3fs.S3FileSystem(**options) store = s3fs.S3Map(root='bucket/store.zarr', s3=s3) Create and writea = xr.DataArray(np.random.randn(2, 3)) a.to_dataset(name='data').to_zarr(store) Read back ina = xr.open_zarr(store)
print(a)
If the 's3://' is not there everything works as expected. I will add that the fact that it at least opens now means I believe we can close #2740. xarray version 0.12.1 zarr version 2.3.1 s3fs version 0.2.1 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2927/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |