# xarray.IndexVariable.clip

#### IndexVariable.clip(min=None, max=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/variable.py#L1953-L1967)

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`](https://numpy.org/doc/stable/reference/generated/numpy.clip.html#numpy.clip)
: equivalent function
