cf.AuxiliaryCoordinate.set_geometry¶
-
AuxiliaryCoordinate.
set_geometry
(value, copy=True)[source]¶ Set the geometry type.
New in version (cfdm): 1.8.0
See also
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