cf.DomainAncillary.has_part_node_count

DomainAncillary.has_part_node_count()[source]

Whether geometry bounds have a part node count variable.

New in version (cfdm): 1.8.0

Returns
bool

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

Examples

>>> p = cf.PartNodeCount(properties={'long_name': 'part node counts'})
>>> c.set_part_node_count(p)
>>> c.has_part_node_count()
True
>>> c.get_part_node_count()
<CF PartNodeCount: long_name=part node counts>
>>> c.del_part_node_count()
<CF PartNodeCount: long_name=part node counts>
>>> c.has_part_node_count()
False