cf.squeeze

cf.squeeze(x, *args, **kwargs)[source]

Return a new variable with size 1 dimensions removed.

The variable must have a copy method and an in-place squeeze method, such as a cf.Field object. Any optional positional and keyword arguments are passed unchanged to the variable’s squeeze method.

See the variable’s squeeze method for details.

Parameters :
x :

The input variable.

args, kwargs :

See the input variable’s squeeze method.

Returns :
out :

A new variable with removed size 1 data array dimensions.

Previous topic

cf.flip

Next topic

cf.transpose

This Page