cf.DomainAncillary.set_node_count

DomainAncillary.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 True (the default) then copy the node count variable prior to insertion.

Returns

None

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