Scipy for Xarray

xr-scipy is a thin wrapper of scipy for xarray eco-system.

Many scipy functions, such as scipy.integrate.trapz, requires coordinate array as an argument. Since xarray objects possess their coordinate values in it, there must be simpler api for such functions.

xr-scipy wraps them to use the native coordinate objects of xarray and returns an xarray object with the computed data. This enables more xarray-oriented data analysis.


xr-scipy is available under the open source Apache License.