Skip to content

to_netcdf encoding problem #7464

Answered by kmuehlbauer
ccoulet asked this question in Q&A
Jan 20, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ccoulet
Comment options

@kmuehlbauer
Comment options

@ccoulet
Comment options

@dcherian
Comment options

Answer selected by ccoulet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants