cf.AuxiliaryCoordinate.set_part_node_count¶
-
AuxiliaryCoordinate.
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 True (the default) then copy the part node count variable prior to insertion.
- part_node_count:
- Returns
Examples
>>> p = cf.PartNodeCount(properties={'long_name': ... 'part node counts'}) >>> c.set_part_node_count(p) >>> c.has_part_node_count() True >>> c.get_part_node_count() <CF PartNodeCount: long_name=part node counts> >>> c.del_part_node_count() <CF PartNodeCount: long_name=part node counts> >>> c.has_part_node_count() False