Rules for propagating attrs and encoding · Issue #1614 · pydata/xarray (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
We need to come up with some clear rules for when and how xarray should propagate metadata (attrs/encoding). This has come up routinely (e.g. #25, #138, #442, #688, #828, #988, #1009, #1271, #1297, #1586) and we don't have a clear direction as to when to keep/drop metadata.
I'll take a first cut:
operation | attrs | encoding | status |
---|---|---|---|
reduce | drop | drop | |
arithmetic | drop | drop | implemented |
copy | keep | keep | |
concat | keep first | keep first | implemented |
slice | keep | drop | |
where | keep | keep |
cc @shoyer (following up on #1586 (comment))