hydromt.stats.skills.volumetric_error#

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

Return the volumetric error between two time series.

\[\begin{split}VE= 1 - \\frac{\\sum_{i=1}^{N}(|sim_{i}-obs_{i}|)}{\\sum_{i=1}^{N}(obs_{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:

volumetric error

Return type:

xarray DataArray