cf.CellMeasure.clip¶
-
CellMeasure.
clip
(a_min, a_max, units=None, bounds=True, i=False)[source]¶ Limit the values in the data array.
Given an interval, values outside the interval are clipped to the interval edges.
Examples 1: >>> g = f.clip(-90, 90)
Parameters: a_min: scalar
a_max: scalar
- bounds: optional
Ignored.
- i:
bool
, optional If True then update the cell measure in place. By default a new cell measure is created. In either case, a cell measure is returned.
Returns: out:
cf.CellMeasure
Examples 2: >>>