xarray_np_gradient

PlasmaCalcs.tools.xarray_tools.xarray_sci.xarray_np_gradient(array, dim)

return the np.gradient of array along dim, without incorporating coordinates into the math.

xarray.differentiate provides the same results if coordinate is not provided for dim,
or if coordinate == np.arange(array.sizes[dim]).
Equivalent: xarray_map(array, np.gradient, axis=dim)