xoa.grid.get_edges#
- xoa.grid.get_edges(da, dim, mode='linear_extrap', **kwargs)[source]#
Interpolate and extrapolate a data array at grid edges along the dim dimension(s)
Inner edges are the middle of consecutive centers, and the outer edges are obtained by extrapolating the centers by default.
Note
Coordinates are linearly extrapolated
- Parameters:
- Returns:
xarray.DataArray
See also