cf.CellMethod.set_axes¶
-
CellMethod.
set_axes
(value)[source]¶ Set the axes of the cell method.
New in version (cfdm): 1.7.0
- Parameters
- value: (sequence of)
str
The axes, specified either by the construct identifiers of domain axis constructs, standard names, or the special string
'area'
.- Parameter example:
axes='domainaxis0'
- Parameter example:
axes='time'
- Parameter example:
axes='area'
- Parameter example:
axes=['domainaxis0', 'domainaxis2']
- Parameter example:
axes=['time', 'area']
- Parameter example:
axes=['domainaxis0', 'time']
- value: (sequence of)
- Returns
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'
>>> c.set_axes(['domainaxis1', 'domainaxis0'])
>>> c.set_axes(['time', 'domainaxis0'])
>>> c.set_axes('time')