cf.Field.data_axes

Field.data_axes()[source]

Return the domain axis identifiers for the data array dimensions.

See also

axes, axis, item_axes

Examples 1:
>>> d = f.data_axes()
Returns:
out : list or None

The ordered axes of the data array. If there is no data array then None is returned.

Examples 2:
>>> f.ndim
3
>>> f.data_axes()
['dim2', 'dim0', 'dim1']
>>> del f.Data
>>> print f.data_axes()
None
>>> f.ndim
0
>>> f.data_axes()
[]

Previous topic

cf.Field.cyclic

Next topic

cf.Field.insert_axis

This Page