Open
Description
What is your issue?
We frequently get bug reports related to encoding
that can usually be fixed by clearing it or by overriding it using the encoding
parameter of the to_*
methods, e.g.
- wrong time encoding after padding #4224
- Error when rechunking from Zarr store #4380
- ComplexWarning: Casting complex values to real discards the imaginary part #4655
- DOC: zarr note on encoding #5427
- Nan/ changed values in output when only reading data, saving and reading again #5490
- 'numpy.datetime64' object has no attribute 'year' writing from grib2 source fsspec/kerchunk#130
There are also a few discussions with more background:
- Zarr chunking fixes #5065 (comment)
- Rules for propagating attrs and encoding #1614
- Move encoding from xarray.Variable to duck arrays? #5082
- ENH: Add keep_encoding to global options #5336
We discussed this in the meeting yesterday and as far as I can remember agreed that the current default behavior is not ideal and decided to investigate #5336: a keep_encoding
option, similar to keep_attrs
, that would be True
(propagate encoding
) by default but will be changed to False
(drop encoding
on any operation) in the future.
Metadata
Metadata
Assignees
Labels
No labels