cfdm.Field.has_mesh_id

Field.has_mesh_id()[source]

Whether the UGRID mesh topology identifier has been set.

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

New in version (cfdm): 1.11.0.0

Returns
bool

True if the mesh topology identifier has been set, otherwise False.

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