cf.CellMethod.del_axes

CellMethod.del_axes(default=ValueError())[source]

Remove the axes of the cell method.

New in version 1.7.0.

Parameters
default: optional

Return the value of the default parameter if axes have not been set. If set to an Exception instance then it will be raised instead.

Returns
tuple

The removed axes, identified by domain axis construct key or standard name.

Examples:

>>> c.set_axes('domainaxis1')
>>> c.has_axes()
True
>>> c.get_axes()
('domainaxis1',)
>>> c.del_axes()
>>> c.has_axes()
False
>>> c.get_axes('NO AXES')
'NO AXES'
>>> c.del_axes('NO AXES')
'NO AXES'