cf.DomainAncillary.has_node_count

DomainAncillary.has_node_count()[source]

Whether geometry bounds have a node count variable.

New in version (cfdm): 1.8.0

Returns
bool

True if there is a node count variable, otherwise False.

Examples

>>> n = cf.NodeCount(properties={'long_name': 'node counts'})
>>> c.set_node_count(n)
>>> c.has_node_count()
True
>>> c.get_node_count()
<CF NodeCount: long_name=node counts>
>>> c.del_node_count()
<CF NodeCount: long_name=node counts>
>>> c.has_node_count()
False