Return the sizes of domain axes.
Axes are selected with the criteria specified by the keyword parameters. If no keyword parameters are specified then all axes are selected.
Examples 1: |
---|
>>> x = f.axes_sizes()
Parameters: |
|
---|---|
Returns: |
|
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}