datatree.DataTree.broadcast_like#

DataTree.broadcast_like(other: xarray.core.types.T_DataArrayOrSet, exclude: collections.abc.Iterable[collections.abc.Hashable] | None = None) Self[source]#

Broadcast this DataArray against another Dataset or DataArray. This is equivalent to xr.broadcast(other, self)[1]

Parameters
  • other (Dataset or DataArray) – Object against which to broadcast this array.

  • exclude (iterable of hashable, optional) – Dimensions that must not be broadcasted