pysteps.blending.skill_scores.spatial_correlation

pysteps.blending.skill_scores.spatial_correlation#

pysteps.blending.skill_scores.spatial_correlation(obs, mod, domain_mask)#

Determine the spatial correlation between the cascade of the latest available observed (radar) rainfall field and a time-synchronous cascade derived from a model (generally NWP) field. Both fields are assumed to use the same grid.

Parameters:
  • obs (array-like) – Array of shape [cascade_level, y, x] with per cascade_level the normalized cascade of the observed (radar) rainfall field.

  • mod (array-like) – Array of shape [cascade_level, y, x] with per cascade_level the normalized cascade of the model field.

  • domain_mask (array-like) – Boolean array of shape [y, x] indicating which cells fall outside the radar domain.

Returns:

rho – Array of shape [n_cascade_levels] containing per cascade_level the correlation between the normalized cascade of the observed (radar) rainfall field and the normalized cascade of the model field.

Return type:

array-like

References

[BPS06] [SPN13]