scipp.broadcast#

scipp.broadcast(x, dims=None, shape=None, sizes=None)#

Broadcast a Variable or a DataArray. If the input is a DataArray, coordinates and attributes are shallow-copied and masks are deep copied.

Note that scipp operations broadcast automatically, so using this function directly is rarely required.

Parameters
Returns

Variable – New Variable or DataArray with requested dimension labels and shape.