cf.CoordinateReference.set_coordinates

CoordinateReference.set_coordinates(coordinates)[source]

Set references to coordinate constructs.

New in version (cfdm): 1.7.0

Parameters
coordinates: (sequence of) str

The coordinate construct keys to be set.

Parameter example:

coordinates=['dimensioncoordinate0']

Parameter example:

coordinates='dimensioncoordinate0'

Parameter example:

coordinates=set(['dimensioncoordinate0', 'auxiliarycoordinate1'])

Parameter example:

coordinates=[]

Returns

None

Examples:

>>> old = c.clear_coordinates()
{'dimensioncoordinate0', 'dimensioncoordinate1'}
>>> c.coordinates()
set()
>>> c.set_coordinates(old)
>>> c.coordinates()
{'dimensioncoordinate0', 'dimensioncoordinate1'}