xarray.ones_like

xarray.ones_like(other, dtype=None)

Shorthand for full_like(other, 1, dtype)