hydromt.stats.skills.pearson_correlation#

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

Return the Pearson correlation coefficient of two time series.

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:

the pearson correlation coefficient

Return type:

xarray DataArray