hydromt.stats.skills.bias#

hydromt.stats.skills.bias(sim, obs, dim='time')[source]#

Return the bias between two time series.

\[\begin{split}Bias=\\frac{1}{N}\\sum_{i=1}^{N}(obs_{i}-sim_{i})\end{split}\]
Parameters:
  • sim (xarray DataArray) – simulations time series

  • obs (xarray DataArray) – observations time series

  • dim (str, optional) – name of time dimension in sim and obs (the default is ‘time’)

Returns:

bias

Return type:

xarray DataArray