Skip to content

keep attrs when reducing xray objects #138

Description

@jhamman

Reduction operations currently drop all Variable and Datasetattrs when a reduction operation is performed. I'm proposing adding a keyword to these methods to allow for copying of the original Variable or Datasetattrs.

The default value of the keep_attrs keyword would be False.

For example:

new=ds.mean(keep_attrs=True)

returns new with all the Variable and Datasetattrs as ds contained.

Some previous discussion in #131 and #137.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions