cf.Field.data_axes¶
-
Field.
data_axes
()[source]¶ Return the domain axes for the data array dimensions.
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'] >>> f.remove_data() >>> print f.data_axes() None
>>> f.ndim 0 >>> f.data_axes() []