cf.Field.axis_size

Field.axis_size(axis=None, **kwargs)[source]

Return the size a of a domain axis.

See also

axis, axes_sizes, axis_identity, axis_name

Parameters:
axis, kwargs : optional

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

Returns:
out : int

The size of the axis.

Examples:
>>> f
<CF Field: eastward_wind(time(3), air_pressure(5), latitude(110), longitude(106)) m s-1>
>>> f.axis_size('longitude')
106

Previous topic

cf.Field.axis_name

Next topic

cf.Field.binary_mask

This Page