Open vlevasseur073 opened 2 days ago
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
What happened?
Trying to open a datatree using the Zarr backend from a zarr file stored in a private S3 bucket leads to the following error:
GroupNotFoundError: group not found at path ''
This issue was already in the xarray-contrib/datatree, see https://github.com/xarray-contrib/datatree/issues/322 The fix could be more or less the same, but at that time I did not take time to propose a PR.
What did you expect to happen?
The
open_datatree
function fromzarr.py
has astorage_options
argument. Yet this argument is not passed to theZarrStore.open_store
.Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
A possible fix could be, in xarray.backends.zarr.open_datatree:
As a summary:
storage_options
inZarrStore.open_store
backend_kwargs
inopen_dataset
Environment