xoa.regrid.extrap1d

Contents

xoa.regrid.extrap1d#

xoa.regrid.extrap1d(da, dim, mode, dask='parallelized')[source]#

Extrapolate along a single dimension

Fills NaN values at the edges of dim by nearest-neighbor extrapolation. Name, attributes and coordinates are preserved.

Parameters:
Returns:

xarray.DataArray – Extrapolated array.

Example

Fill NaN values at both ends along the "y" dimension:

vo = extrap1d(vi, "y", mode="both")