cfdm.Field.climatological_time_axes

Field.climatological_time_axes()[source]

Return all axes which are climatological time axes.

This is ascertained by inspecting the axes of any cell methods constructs.

New in version (cfdm): 1.7.0

Returns
set

The axes on the field which are climatological time axes. If there are none, this will be an empty set.

Examples:

>>> f
<Field: air_temperature(time(12), latitude(145), longitude(192)) K>
>>> print(f.cell_methods())
Constructs:
{'cellmethod0': <CellMethod: domainaxis0: minimum within days>,
 'cellmethod1': <CellMethod: domainaxis0: mean over days>}
>>> f.climatological_time_axes()
{'domainaxis0'}
>>> g
<Field: air_potential_temperature(time(120), latitude(5), longitude(8)) K>
>>> print(g.cell_methods())
Constructs:
{'cellmethod0': <CellMethod: area: mean>}
>>> g.climatological_time_axes()
set()