datatree.DataTree.broadcast_like

Attention

This repository has been archived. Please use xarray.DataTree instead.

datatree.DataTree.broadcast_like#

DataTree.broadcast_like(other: T_DataArrayOrSet, exclude: Iterable[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