cf.DimensionCoordinate.get_node_count

DimensionCoordinate.get_node_count(default=ValueError())[source]

Return the node count variable for geometry bounds.

New in version (cfdm): 1.8.0

Parameters
default: optional

Return the value of the default parameter if a node count variable has not been set.

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

Returns
NodeCount

The node count variable.

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