xarray_faces_3D

PlasmaCalcs.plotting.faceplot.xarray_faces_3D(array, ikeep=0, *, dims=('x', 'y', 'z'))

infer the faces (at 0th index of dims) of a 3D xarray.DataArray.

ikeep: int
select ikeep’th value in the removed-dimension for each face.
E.g. if ikeep=0: x_y=array.isel(z=0), x_z=array.isel(y=0), and y_z=array.isel(x=0).
dims: 3-tuple of str
the names of the dimensions for the x, y, and z faces.
also affects resulting data var names,
e.g. dims=’abc’ –> result will have ‘a_b’ instead of ‘x_y’.
returns xarray.Dataset with data vars x_y, x_z, y_z.