cf.Field.items_axes

Field.items_axes(items=None, **kwargs)[source]

Return the axes of domain items of the field.

An item is a dimension coordinate, an auxiliary coordinate, a cell measure or a coordinate reference object.

Parameters:
items, kwargs : optional

Select the items which would be selected by this call of the field’s items method: f.items(items, **kwargs). See cf.Field.items for details.

Returns:
out : dict

A dictionary whose keys are domain item identifiers with corresponding values of the ordered list of axes for each selected. The dictionary may be empty.

Examples:
>>> f.domain.items_axes()
{'aux0': ['dim2', 'dim3'],
 'aux1': ['dim2', 'dim3'],
 'dim0': ['dim0'],
 'dim1': ['dim1'],
 'dim2': ['dim2'],
 'dim3': ['dim3']}
>>> f.domain.items_axes(role='d')
{'dim0': ['dim0'],
 'dim1': ['dim1'],
 'dim2': ['dim2'],
 'dim3': ['dim3']}

Previous topic

cf.Field.items

Next topic

cf.Field.iter

This Page