xarray.Variable.clip

xarray.Variable.clip

Variable.clip(min=None, max=None)[source]

Return an array whose values are limited to [min, max]. At least one of max or min must be given.

Refer to numpy.clip for full documentation.

See also

numpy.clip

equivalent function