From 556326e7c38d635ce9df51c19a51b426de492bfa Mon Sep 17 00:00:00 2001 From: Valerie Reppert Date: Tue, 27 Jun 2023 10:59:52 +0200 Subject: [PATCH 1/3] improved docstring of to_netcdf (issue #7127) --- xarray/core/dataset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index f4ba9d4f9fe..b09b50cd1c4 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1919,7 +1919,9 @@ def to_netcdf( Nested dictionary with variable names as keys and dictionaries of variable specific encodings as values, e.g., ``{"my_variable": {"dtype": "int16", "scale_factor": 0.1, - "zlib": True}, ...}`` + "zlib": True}, ...}``. + If encoding is specified the original encoding of the variables of + the dataset is ingnored The `h5netcdf` engine supports both the NetCDF4-style compression encoding parameters ``{"zlib": True, "complevel": 9}`` and the h5py From 563c67a20c3ffa86ff00367f0e6d043b17a8c7d0 Mon Sep 17 00:00:00 2001 From: Tom Nicholas Date: Tue, 27 Jun 2023 09:57:50 -0400 Subject: [PATCH 2/3] Spelling --- 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 b09b50cd1c4..145f94efbb7 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1921,7 +1921,7 @@ def to_netcdf( ``{"my_variable": {"dtype": "int16", "scale_factor": 0.1, "zlib": True}, ...}``. If encoding is specified the original encoding of the variables of - the dataset is ingnored + the dataset is ignored. The `h5netcdf` engine supports both the NetCDF4-style compression encoding parameters ``{"zlib": True, "complevel": 9}`` and the h5py From cc89e7f2f669caaf95904adeacedd4e8b22c288b Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 21 Jul 2023 14:41:04 -0600 Subject: [PATCH 3/3] Update xarray/core/dataset.py --- 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 26f0d396de7..22867e2e887 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -2043,7 +2043,7 @@ def to_netcdf( variable specific encodings as values, e.g., ``{"my_variable": {"dtype": "int16", "scale_factor": 0.1, "zlib": True}, ...}``. - If encoding is specified the original encoding of the variables of + If ``encoding`` is specified the original encoding of the variables of the dataset is ignored. The `h5netcdf` engine supports both the NetCDF4-style compression