cfdm.AuxiliaryCoordinate.del_interior_ring¶

AuxiliaryCoordinate.del_interior_ring(default=ValueError())[source]¶

Remove the geometry type.

New in version (cfdm): 1.8.6.0

Parameters
default: optional

Return the value of the default parameter if the geometry type has not been set.

If set to an Exception instance then it will be raised instead.

Returns
√ĆnteriorRing

The removed interior ring variable.

Examples:

>>> import numpy
>>> c = cfdm.AuxiliaryCoordinate()
>>> i = cfdm.InteriorRing(data=cfdm.Data(numpy.arange(10).reshape(5, 2)))
>>> c.set_interior_ring(i)
>>> c.has_interior_ring()
True
>>> i = c.get_interior_ring()
>>> i
<InteriorRing: (5, 2) >
>>> i.data
<Data(5, 2): [[0, ..., 9]]>
>>> i.data.shape
(5, 2)
>>> c.del_interior_ring()
<InteriorRing: (5, 2) >
>>> c.has_interior_ring()
False
>>> print(c.del_interior_ring(None))
None