cfdm.Field.del_mesh_id

Field.del_mesh_id(default=ValueError())[source]

Remove the UGRID mesh topology identifier.

Different field constructs with the same mesh topology identifier may be assumed to have domains with a shared UGRID mesh topology.

Added in version (cfdm): 1.11.0.0

Parameters:
default: optional

Return the value of the default parameter if the mesh topology identifier has not been set.

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

Returns:

The removed mesh topology identifier.

Examples

>>> c = cfdm.Field()
>>> c.set_mesh_id('df71b85a99894af094411e7cd21c5d68')
>>> c.has_mesh_id()
True
>>> c.get_mesh_id()
'df71b85a99894af094411e7cd21c5d68'
>>> c.del_mesh_id()
'df71b85a99894af094411e7cd21c5d68'
>>> c.has_mesh_id()
False
>>> print(c.del_mesh_id(None))
None
>>> print(c.get_mesh_id(None))
None