cf.Transform.rename_pointer

Transform.rename_pointer(value, new_value)[source]

Rename a coordinate pointer.

Parameters :
value : str

The coordinate pointer to be renamed.

new_value : str or None

The new coordinate pointer. May be None to signify an unset coordinate.

Returns :

None

Examples

>>> t.rename_pointer('aux0', 'aux3')
>>> t.rename_pointer('dim1', 'dim2')
>>> t.rename_pointer('dim0', 'aux0')
>>> t.rename_pointer('aux2', None)

Previous topic

cf.Transform.remove_pointer

Next topic

cf.Transform.clear

This Page