cfdm.CellMeasure.has_measure

CellMeasure.has_measure()[source]

Whether the measure has been set.

New in version (cfdm): 1.7.0

Returns
bool

True if the measure has been set, otherwise False.

Examples

>>> c = cfdm.CellMeasure()
>>> c.set_measure('area')
>>> c.has_measure()
True
>>> c.get_measure()
'area'
>>> c.del_measure()
'area'
>>> c.has_measure()
False
>>> print(c.del_measure(None))
None
>>> print(c.get_measure(None))
None