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 ofmatch_dpr(); for a rain rate, the radar and the IMERG ofmatch_imerg()).threshold (
float, optional) – Value from which a pair counts as an event (reflectivity or rain rate). Adds the detection scores.dim (
strorlistofstr, 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,maeandcorrelation(Pearson), and withthresholdthe probability of detectionpod, the false alarm ratiofar, the critical success indexcsiand the frequency biasfrequency_bias. A score without events is NaN.- Raises:
TypeError – If an input is not a DataArray.
ValueError – If the shapes differ.