xarray.ones_like

xarray.ones_like(other, dtype: Union[str, numpy.dtype, None] = None)

Shorthand for full_like(other, 1, dtype)