cf.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
See also
- 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.
- 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