scipp.empty_like(var, /)#

Constructs a new object with the same dims, shape, unit and dtype as the input (Variable or DataArray), but with all values uninitialized. If the input has variances, all variances in the output exist but are uninitialized. If the input is a DataArray, coordinates and attributes are shallow-copied and masks are deep copied.


var (Union[Variable, DataArray]) – Input variable or data array.


scipp.empty() scipp.zeros_like() scipp.ones_like()

Return type

Union[Variable, DataArray]