cf.CoordinateBounds.squeeze

CoordinateBounds.squeeze(axes=None)[source]

Remove size 1 dimensions from the data array in place.

Parameters :
axes : int or sequence of ints, 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

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

Previous topic

cf.CoordinateBounds.sin

Next topic

cf.CoordinateBounds.transpose

This Page