NumPy
ma.MaskType.clip
method
Scalar method identical to the corresponding array attribute.
Please see ndarray.clip.
ndarray.clip