xarray.Coordinates.from_xindex

xarray.Coordinates.from_xindex#

classmethod Coordinates.from_xindex(index)[source]#

Create Xarray coordinates from an existing Xarray index.

Parameters:

index (Index) – Xarray index object. The index must support generating new coordinate variables from itself.

Returns:

coords (Coordinates) – A collection of Xarray indexed coordinates created from the index.