xoa.regrid.regrid1d

xoa.regrid.regrid1d(da, coord, method=None, dim=None, coord_in_name=None, edges=None, conserv=False, extrap='no', bias=0.0, tension=0.0, dask='parallelized')[source]

Regrid along a single dimension

The input and output coordinates may vary along other dimensions, which useful for instance for vertical interpolation in coastal ocean models. Since it uses func:xarray.apply_ufunc, it support dask features. The core computation is performed by the numba-accelerated routines of xoa.interp.

Parameters:
Returns:

xarray.DataArray – Regridded array with coord as new coordinate array.