cfdm.core.CellMethod.set_method

CellMethod.set_method(value)[source]

Set the method of the cell method.

New in version (cfdm): 1.7.0

Parameters
value: str

The value for the method.

Returns

None

Examples

>>> c = cfdm.core.CellMethod()
>>> c.set_method('minimum')
>>> c.has_method()
True
>>> c.get_method()
'minimum'
>>> c.del_method()
'minimum'
>>> c.has_method()
False
>>> c.get_method('NO METHOD')
'NO METHOD'
>>> c.del_method('NO METHOD')
'NO METHOD'