xoa.grid.shift
- xoa.grid.shift(da, shift_dirs, mode='edge', **kwargs)[source]
Shift the grid by an half grid cell along specified dimensions and directions
This is typically useful with Arakawa grids.
- Parameters:
da (xarray.DataArray, xarray.Dataset) –
shift_dirs (dict) – Keys are dimension names and values are directions:
-1|"left"|"bottom"|"south"|"low"|"west"
,1|"right"|"top"|"north"|"high"|"east"
mode (str) – Extrapolation mode at grid edges
kwargs – Extra arguments are passed to
pad()
- Returns:
xarray.DataArray, xarray.Dataset
See also