cfdm.AuxiliaryCoordinate.set_geometry

AuxiliaryCoordinate.set_geometry(value)[source]

Set the geometry type.

New in version (cfdm): 1.8.0

Parameters
value: str

The geometry type to set.

Returns

None

Examples

>>> f = cfdm.read('file.nc')[0]
>>> c = f.construct('axis=X')
>>> c.has_geometry()
True
>>> c.get_geometry()
'line'
>>> b = c.del_geometry()
>>> c.has_geometry()
False
>>> print(c.get_geometry(None))
None
>>> c.set_geometry(b)
>>> c.has_geometry()
True