cf.DomainAxis.set_size

DomainAxis.set_size(size, copy=True)[source]

Set the size.

New in version (cfdm): 1.7.0

Parameters
value: int

The size.

copy: bool, optional

If True then set a deep copy of size.

Returns

None

Examples:

>>> d.set_size(96)
>>> d.has_size()
True
>>> d.get_size()
96
>>> d.del_size()
96
>>> d.has_size()
False
>>> print(d.del_size(None))
None
>>> print(d.get_size(None))