Skip to content

Commit b741d83

Browse files
paigemdcherian
andauthored
Add sentence to open_dataset docstring (#7438)
* Add sentence to open_dataset docstring * Update xarray/backends/api.py Co-authored-by: Deepak Cherian <[email protected]>
1 parent b589f6b commit b741d83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xarray/backends/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ def open_dataset(
414414
arrays. ``chunks=-1`` loads the dataset with dask using a single
415415
chunk for all arrays. ``chunks={}`` loads the dataset with dask using
416416
engine preferred chunks if exposed by the backend, otherwise with
417-
a single chunk for all arrays.
417+
a single chunk for all arrays. In order to reproduce the default behavior
418+
of ``xr.open_zarr(...)`` use ``xr.open_dataset(..., engine='zarr', chunks={})``.
418419
``chunks='auto'`` will use dask ``auto`` chunking taking into account the
419420
engine preferred chunks. See dask chunking for more details.
420421
cache : bool, optional

0 commit comments

Comments
 (0)