cf.Coordinate.asdimension

Coordinate.asdimension(copy=True)[source]

Return the coordinate recast as a dimension coordinate.

Parameters:
copy : bool, optional

If False then the returned dimension coordinate is not independent. By default the returned dimension coordinate is independent.

Returns:
out : cf.DimensionCoordinate

The coordinate recast as a dimension coordinate.

Examples:
>>> d = c.asdimension()
>>> d = c.asdimension(copy=False)