cf.CoordinateReference.set_coordinates¶
-
CoordinateReference.
set_coordinates
(coordinates)[source]¶ Set references to coordinate constructs.
New in version 1.7.0.
See also
- 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=[]
- coordinates: (sequence of)
- Returns
Examples:
>>> old = c.clear_coordinates() {'dimensioncoordinate0', 'dimensioncoordinate1'} >>> c.coordinates() set() >>> c.set_coordinates(old) >>> c.coordinates() {'dimensioncoordinate0', 'dimensioncoordinate1'}