xarray_jacobian
- PlasmaCalcs.tools.xarray_tools.xarray_sci.xarray_jacobian(array, coords, dims)
return the jacobian of array with respect to these coords and dims.
This is the grid of derivatives:d(c0)/d(d0) d(c0)/d(d1) …d(c1)/d(d0) d(c1)/d(d1) ……coords: iterable of str; order matters.dims: iterable of str; order matters.Assumes coords’ dims are all in dims,and that each dim in dims appears in at least one of the coords’ dims.[TODO] output xarray with extra dims, instead of a list of lists…