From 98df6700c0c9919ac6289a19dc1a32893496566b Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Tue, 1 Jun 2021 23:19:04 -0400 Subject: [PATCH 1/2] DOC: zarr note on encoding --- xarray/core/dataset.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 1697a7c67aa..bf5cd620e4f 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1994,6 +1994,10 @@ def to_zarr( If not other chunks are found, Zarr uses its own heuristics to choose automatic chunk sizes. + encoding: + The encoding attribute (if exists) of the DataArray(s) will be + passed on to the corresponding .zarray file. + See Also -------- :ref:`io.zarr` From b7d0a4001160dfa263cf41cc332675d30f34ccd3 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Thu, 17 Jun 2021 12:12:10 -0400 Subject: [PATCH 2/2] Update xarray/core/dataset.py Co-authored-by: Deepak Cherian --- xarray/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index bf5cd620e4f..226b7ad0dae 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1996,7 +1996,7 @@ def to_zarr( encoding: The encoding attribute (if exists) of the DataArray(s) will be - passed on to the corresponding .zarray file. + used. Override any existing encodings by providing the ``encoding`` kwarg. See Also --------