cfdm.DimensionCoordinate.set_node_count

DimensionCoordinate.set_node_count(node_count, copy=True)[source]

Set the node count variable for geometry bounds.

New in version (cfdm): 1.8.0

Parameters
node_count: NodeCount

The node count variable to be inserted.

copy: bool, optional

If False then do not copy the node count variable prior to insertion. By default it is copied.

Returns

None

Examples:

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