cf.Field.axes_sizes

Field.axes_sizes(axes=None, size=None, key=False, **kwargs)[source]

{def_axes_sizes}

Returns:
out : dict

The sizes of the axes.

Examples 2:
>>> f
<CF Field: eastward_wind(time(3), air_pressure(5), latitude(110), longitude(106)) m s-1>
>>> f.axes_sizes()
{'air_pressure': 5, 'latitude': 110, 'longitude': 106, 'time': 3}
>>> f.axes_sizes(size=3)
{'time': 3}
>>> f.axes_sizes(size=cf.lt(10), key=True)
{'dim0': 3, 'dim1': 5}
>>> f.axes_sizes('latitude')
{'latitude': 110}

Previous topic

cf.Field.axes

Next topic

cf.Field.axis

This Page