Skip to content

Rules for propagating attrs and encoding #1614

Open
@jhamman

Description

@jhamman

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-metadataRelating to the handling of metadata (i.e. attrs and encoding)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions