xoa.grid.get_centers
- xoa.grid.get_centers(da, dim)[source]
Interpolate the data array at mid grid points along the dim dimension(s)
Note
Coordinates are also centered
- Parameters:
da (xarray.DataArray) –
dim (str, tuple) – Single or tuple of data-array or generic dimension names.
- Returns:
xarray.DataArray
See also