Skip to content

Commit 971be10

Browse files
vallirepTomNicholasdcherian
authored
improved docstring of to_netcdf (issue #7127) (#7947)
* improved docstring of to_netcdf (issue #7127) * Spelling * Update xarray/core/dataset.py --------- Co-authored-by: Tom Nicholas <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
1 parent 4441f99 commit 971be10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/core/dataset.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,9 @@ def to_netcdf(
20422042
Nested dictionary with variable names as keys and dictionaries of
20432043
variable specific encodings as values, e.g.,
20442044
``{"my_variable": {"dtype": "int16", "scale_factor": 0.1,
2045-
"zlib": True}, ...}``
2045+
"zlib": True}, ...}``.
2046+
If ``encoding`` is specified the original encoding of the variables of
2047+
the dataset is ignored.
20462048
20472049
The `h5netcdf` engine supports both the NetCDF4-style compression
20482050
encoding parameters ``{"zlib": True, "complevel": 9}`` and the h5py

0 commit comments

Comments
 (0)