cf.CoordinateReference.set_coordinate

CoordinateReference.set_coordinate(key)[source]

Set a reference to a coordinate construct.

New in version (cfdm): 1.7.0

Parameters
key: str

The construct key of the coordinate construct.

Parameter example:

key='dimensioncoordinate1'

Parameter example:

key='auxiliarycoordinate0'

Returns

None

Examples:

>>> r = cf.CoordinateReference()
>>> r.set_coordinate('dimensioncoordinate0')
>>> r.coordinates()
{'dimensioncoordinate0'}
>>> r.has_coordinate('dimensioncoordinate0')
True
>>> r.has_coordinate('auxiliarycoordinate0')
False