Skip to content

Coordinates operations #10314

Open
@keewis

Description

@keewis

What is your issue?

At the moment, the Coordinates objects are not as useful as I'd like them to be, so in this issue I'd like to collect all the methods it should support. Some of these already exist, but listing them again helps with defining a coherent API:

  • coordinate variables
    • assignment of new coordinates (from Variable / DataArray / Coordinates / any array): Coordinates.assign()
    • deletion of coordinates (similar to Dataset.drop_vars): only via del coords["x"] but a Coordinates.drop_vars() might be welcome I guess
    • renaming coordinates: no specific method yet, Coordinates.rename_vars()?
    • renaming dimensions on coordinates: no specific method yet, Coordinates.rename_dims()?
  • indexes
  • combination
    • merging (also using |)

cc @benbovy, @scottyhq

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions