diagnostic.visualizations.visualize_perkins_skill_score#

visualize_perkins_skill_score(da_mod: DataArray, da_obs: DataArray, binwidth: float = None)[source]#

Visualize the Perkins Skill Score (PSS) by plotting the normalized histograms of the model and reference data, and display the PSS score and bin width used. For testing bin_widths

Parameters:
  • da_mod (xr.DataArray) – The model data to compare.

  • da_obs (xr.DataArray) – The reference data to compare against.

  • binwidth (float, optional) – The width of each bin for the histogram. If None, an optimal bin width should be calculated within the function (default is None).

Returns:

This function does not return any value. It displays a plot with the normalized histograms and Perkins Skill Score.

Return type:

None

Notes

The function calculates the Perkins Skill Score using the provided or default bin width, and plots the normalized histograms of the model and reference data. The plot also includes annotations for the Perkins Skill Score and bin width used.