hydromt.stats.skills.spearman_rank_correlation#
- hydromt.stats.skills.spearman_rank_correlation(sim, obs, dim='time')[source]#
Return the spearman rank correlation coefficient of two time series.
- Parameters:
sim (
xarray DataArray
) – simulations time seriesobs (
xarray DataArray
) – observations time seriesdim (
str
, optional) – name of time dimension in sim and obs (the default is ‘time’)
- Returns:
the spearman rank correlation
- Return type:
xarray DataArray