cf.AuxiliaryCoordinate.set_node_count¶
-
AuxiliaryCoordinate.
set_node_count
(node_count, copy=True)[source]¶ Set the node count variable for geometry bounds.
New in version (cfdm): 1.8.0
See also
- 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.
- node_count:
- Returns
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