PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_shift_coords
- PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_shift_coords(array, shift=None, *, missing_ok=True, **shift_as_kw)
- return copy of array with coords shifted by shift.
- shift: None or dict of {coord: shift}
- dict –> shift each coord by the corresponding number.None –> provide as kwargs (shift_as_kw) instead.
shift_as_kw: if shift is None, can provide shift dict as kwargs instead. missing_ok: bool
whether it is okay if some coords are missing (if yes, skip missing coords).