cf.Domain.remove_coordinate

Domain.remove_coordinate(key)[source]

Remove a coordinate from the domain in place, preserving internal consistency.

Note that this will never remove a dimension from the domain.

Parameters :
key : str

The identifier of the coordinate to be removed.

Returns :
out : cf.Coordinate

The removed coordinate.

Examples

>>> d.dimension_sizes
{'dim0': 73, 'dim1': 96, 'dim2': 1}
>>> d.dimensions
{'dim0': ['dim0'],
 'dim1': ['dim1'],
 'aux0': ['dim2'],
 'data': ['dim2', 'dim0, 'dim1']}
>>> d.remove_coordinate('aux0')
>>> d.remove_coordinate('dim1')
>>> d.dimension_sizes
{'dim0': 73, 'dim1': 96, 'dim2': 1}}
>>> d.dimensions
{'dim0': ['dim0'],
 'data': ['dim2', 'dim0, 'dim1']}

Previous topic

cf.Domain.remove_cell_measure

Next topic

cf.Domain.remove_dimension

This Page