xarray.indexes.CoordinateTransform#

class xarray.indexes.CoordinateTransform(coord_names, dim_size, dtype=None)[source]#

Abstract coordinate transform with dimension & coordinate names.

Caution

This API is experimental and subject to change. Please report any bugs or surprising behaviour you encounter.

__init__(coord_names, dim_size, dtype=None)[source]#

Methods

__init__(coord_names, dim_size[, dtype])

equals(other, **kwargs)

Check equality with another CoordinateTransform of the same kind.

forward(dim_positions)

Perform grid -> world coordinate transformation.

generate_coords([dims])

Compute all coordinate labels at once.

reverse(coord_labels)

Perform world -> grid coordinate reverse transformation.

Attributes

coord_names

dims

dim_size

dtype