xarray.core.coordinates.DatasetCoordinates

class xarray.core.coordinates.DatasetCoordinates(dataset)

Dictionary like container for Dataset coordinates.

Essentially an immutable dictionary with keys given by the array’s dimensions and the values given by the corresponding xarray.Coordinate objects.

__init__(self, dataset: 'Dataset')

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, dataset)

Initialize self.

get(self, key[, default])

items(self)

keys(self)

merge(self, other)

Merge two sets of coordinates to create a new Dataset

to_dataset(self)

Convert these coordinates into a new Dataset

to_index(self, ordered_dims)

Convert all index coordinates into a pandas.Index.

update(self, other, Any])

values(self)

Attributes

dims

indexes

variables