to_netcdf encoding problem #7464
-
Hi
There is no error if I remove encoding=ds.encoding in the last line Any idea what's going wrong with this option? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If you specify
See to_netcdf docstring. |
Beta Was this translation helpful? Give feedback.
If you specify
encoding
kwarg you need specify a dictionary which contains the names of your variables as keys (citing from the docstring):encoding – 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}, ...}
See to_netcdf docstring.