🍾 Xarray is now 10 years old! 🎉

xarray.DataArray.values

Contents

xarray.DataArray.values#

property DataArray.values#

The array’s data as a numpy.ndarray.

If the array’s data is not a numpy.ndarray this will attempt to convert it naively using np.array(), which will raise an error if the array type does not support coercion like this (e.g. cupy).