xarray.ones_like

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

Shorthand for full_like(other, 1, dtype)