PlasmaCalcs.tools.xarray_tools.xarray_dimensions.xarray_broadcastable_array

PlasmaCalcs.tools.xarray_tools.xarray_dimensions.xarray_broadcastable_array(array, dims)
return broadcastable version of array, standardizing dims to the list provided.
missing dims will be expanded to size 1. result dims will be put in this order.
dims: list of str
result will have all these dims, in this order, with size 1 if not present in array.
if any array.dims not present in dims, raise DimensionKeyError.