cfdm.DomainAncillary.set_part_node_count

DomainAncillary.set_part_node_count(part_node_count, copy=True)[source]

Set the part node count variable for geometry bounds.

New in version (cfdm): 1.8.0

Parameters
part_node_count: PartNodeCount

The part node count variable to be inserted.

copy: bool, optional

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

Returns

None

Examples:

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