radarx.retrieve.satellite_match.match_statistics#

radarx.retrieve.satellite_match.match_statistics(reference, estimate, *, threshold=None, dim=None)[source]#

Agreement of two matched fields: bias, error, correlation and detection scores.

Pairs where either value is missing are left out. The differences are estimate - reference; for matched reflectivities in dBZ, they are in dB.

Parameters:
  • reference, estimate (xarray.DataArray) – Matched values with the same shape (e.g. the ground radar and the DPR of match_dpr(); for a rain rate, the radar and the IMERG of match_imerg()).

  • threshold (float, optional) – Value from which a pair counts as an event (reflectivity or rain rate). Adds the detection scores.

  • dim (str or list of str, optional) – Dimensions to reduce. Default: all.

Returns:

xarray.Dataset – count, mean_reference, mean_estimate, bias (mean of estimate minus reference), ratio (mean estimate / mean reference), rmse, mae and correlation (Pearson), and with threshold the probability of detection pod, the false alarm ratio far, the critical success index csi and the frequency bias frequency_bias. A score without events is NaN.

Raises: