# xarray.indexes.CoordinateTransform

### *class* xarray.indexes.CoordinateTransform(coord_names, dim_size, dtype=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/coordinate_transform.py#L9-L109)

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]](https://github.com/pydata/xarray/blob/main/xarray/core/coordinate_transform.py#L22-L34)

### Methods

| [`__init__`](#xarray.indexes.CoordinateTransform.__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`         |    |
