cf.CoordinateReference.clear_coordinates¶
-
CoordinateReference.
clear_coordinates
()[source]¶ Remove all references to coordinate constructs.
New in version (cfdm): 1.7.0
See also
- Returns
set
The removed coordinate construct keys.
Examples:
>>> r = cf.CoordinateReference() >>> r.set_coordinates(['dimensioncoordinate0', 'auxiliarycoordinate1']) >>> sorted(r.coordinates()) ['auxiliarycoordinate1', 'dimensioncoordinate0'] >>> sorted(r.clear_coordinates()) ['auxiliarycoordinate1', 'dimensioncoordinate0'] >>> r.coordinates() set()