cf.CoordinateBounds.clip

CoordinateBounds.clip(a_min, a_max, units=None, i=False)[source]

Clip (limit) the values in the data array in place.

Given an interval, values outside the interval are clipped to the interval edges.

Parameters :

a_min : scalar

a_max : scalar

units : str or Units

i : bool, optional
If True then update the coordinate bounds in place. By default a new coordinate bounds is created. In either case, a coordinate bounds is returned.
Returns:None
Examples:

Previous topic

cf.CoordinateBounds.chunk

Next topic

cf.CoordinateBounds.close

This Page