cf.DomainAncillary.clip¶
-
DomainAncillary.
clip
(a_min, a_max, units=None, i=False)[source]¶ Clip (limit) the values in the data array and its bounds in place.
Given an interval, values outside the interval are clipped to the interval edges.
New in version 2.0.
Parameters :
a_min : scalar
a_max : scalar
units : str or Units
- i:
bool
, optional - If True then update the domain ancillary in place. By default a new domain ancillary is created. In either case, a domain ancillary is returned.
Returns: None Examples: - i: