cf.CellMethod.has_axes

CellMethod.has_axes()[source]

Whether the axes of the cell method have been set.

New in version (cfdm): 1.7.0

Returns
bool

True if the axes have been set, otherwise False.

Examples:

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