Skip to content

Commit

Permalink
improve to_zarr doc about chunking (#4048)
Browse files Browse the repository at this point in the history
* Update dataset.py

* attempt at improving the doc formulation

* update to_zarr docstring

* minor style update

* seems to fix doc compilation locally

* delete saved_on_disk.nc

Co-authored-by: Aurélien Ponte <[email protected]>
  • Loading branch information
apatlpo and Aurélien Ponte authored May 20, 2020
1 parent 5c04ebf commit 484d1ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,15 @@ def to_zarr(
References
----------
https://zarr.readthedocs.io/
Notes
-----
Zarr chunking behavior:
If chunks are found in the encoding argument or attribute
corresponding to any DataArray, those chunks are used.
If a DataArray is a dask array, it is written with those chunks.
If not other chunks are found, Zarr uses its own heuristics to
choose automatic chunk sizes.
"""
if encoding is None:
encoding = {}
Expand Down

0 comments on commit 484d1ce

Please sign in to comment.