cfdm.CoordinateReference.set_coordinate¶
-
CoordinateReference.
set_coordinate
(key)[source]¶ Set a reference to a coordinate construct.
New in version (cfdm): 1.7.0
See also
- Parameters
- key:
str
The construct key of the coordinate construct.
- Parameter example:
key='dimensioncoordinate1'
- Parameter example:
key='auxiliarycoordinate0'
- key:
- Returns
Examples
>>> r = cfdm.CoordinateReference() >>> r.set_coordinate('dimensioncoordinate0') >>> r.coordinates() {'dimensioncoordinate0'} >>> r.has_coordinate('dimensioncoordinate0') True >>> r.has_coordinate('auxiliarycoordinate0') False