cf.clip

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

Return a new variable with clipped (limited) data array values.

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

See the input variable’s clip method for details.

Parameters :
x :

The input variable.

args, kwargs :

See the input variable’s clip method.

Returns :
out :

A new variable with clipped (limited) data array values.

See also

cf.cos, cf.sin

Previous topic

cf.aggregate

Next topic

cf.collapse

This Page