home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 777706069

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/4823#issuecomment-777706069 https://api.github.com/repos/pydata/xarray/issues/4823 777706069 MDEyOklzc3VlQ29tbWVudDc3NzcwNjA2OQ== 17162724 2021-02-11T18:42:59Z 2021-02-11T18:42:59Z CONTRIBUTOR

I think my Q on SO is related to this PR https://stackoverflow.com/questions/66145459/open-mfdataset-on-remote-zarr-store-giving-zarr-errors-groupnotfounderror

Was looking at reading a remote zarr store using open_mfdataset

@martindurant suggested putting the single "file" (mapping) in a list which works ds = xr.open_mfdataset([file], engine="zarr")

but I also wanted to test the other suggestion

ds = xr.open_mfdataset(uri, engine="zarr", backend_kwargs=dict(storage_options={'anon': True}))

On current xarray master I get Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/ray.bell/Documents/PYTHON_dev/xarray/xarray/backends/api.py", line 884, in open_mfdataset raise OSError("no files to open") OSError: no files to open

On this branch it works ``` git clone https://github.com/martindurant/xarray.git git checkout fsspec_mk2 conda create -c conda-forge -n xarray-tests python=3.8 conda env update -f ci/requirements/environment.yml conda activate xarray-tests pip install -e . pip install s3fs

import xarray as xr uri = "s3://era5-pds/zarr/2020/12/data/eastward_wind_at_10_metres.zarr" ds = xr.open_mfdataset(uri, engine="zarr", backend_kwargs=dict(storage_options={'anon': True})) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  788398518
Powered by Datasette · Queries took 0.602ms · About: xarray-datasette