cf.Field.remove_axes

Field.remove_axes(axes=None, **kwargs)[source]

Remove and return axes from the field.

By default all axes of the domain are removed, but particular axes may be selected with the keyword arguments.

The axis may be selected with the keyword arguments. If no unique axis can be found then no axis is removed and None is returned.

If an axis has size greater than 1 then it is not possible to remove it if it is spanned by the field’s data array or any multidimensional coordinate or cell measure object of the field.

Parameters :
axes, kwargs : optional

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

Returns :
out : list

The removed axes. The list may be empty.

Examples

Previous topic

cf.Field.period

Next topic

cf.Field.remove_axis

This Page