PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_differentiate

PlasmaCalcs.tools.xarray_tools.xarray_coords.xarray_differentiate(array, coord, *, keep_attrs=True, **kw__differentiate)
differentiate array along coord, treating array like it is an xarray.DataArray.
more lenient than xarray.DataArray.differentiate;
returns 0 if can’t differentiate along coord (due to coord having size 1 or not existing.)
keep_attrs: bool
whether to copy attrs from array into the result. Default True.
requires that array.coords and array.differentiate exist, otherwise raises AttributeError.