cf.Coordinate.squeeze

Coordinate.squeeze(axes=None)[source]

Remove size 1 dimensions from the data array and bounds in place.

Parameters :
axes : (sequence of) int or str, optional

The size 1 axes to remove. By default, all size 1 axes are removed. Size 1 axes for removal may be identified by the integer positions of dimensions in the data array.

Returns :

None

Examples

>>> c.squeeze()
>>> c.squeeze(1)
>>> c.squeeze([1, 2])

Previous topic

cf.Coordinate.sin

Next topic

cf.Coordinate.transpose

This Page