Short description of the diagnostic
As discussed at the recent hackathon, we are aiming for a replacement of diag_scripts/perfmetrics in python. We might be able to use preprocessor functions to calculate different performance metrics in the future. Alternative diagnostics to plot timeseries and hovmöller diagrams already exist. Therefore, we focus on developing a flexible plotting diagnostic that can produce figures similar to the permetrics overview figure 5 and gleckler plots produced by the ETCCDI recipe.
This would be one step towards recreating one figure from the set of perfmetric diagnostics.
[x] discuss translation of ncl code -> recreate portrait plot from scratch in python
[x] calculate rmse and pearson corelation using preprocessor
It's possible to add up to 3 additional (4 in total) reference datasets and show them as triangular overlay. They don't need to be complete and the drawing of non existing (white) data is optional.
A legend is added and can be customized in position and size, to manually fix layout issues in very wide/narrow figures.
Optional normalization for metrics is added (supported "mean", "median", "centered_mean", "centered_median") similar to shared/statistics.ncl
Short description of the diagnostic As discussed at the recent hackathon, we are aiming for a replacement of diag_scripts/perfmetrics in python. We might be able to use preprocessor functions to calculate different performance metrics in the future. Alternative diagnostics to plot timeseries and hovmöller diagrams already exist. Therefore, we focus on developing a flexible plotting diagnostic that can produce figures similar to the permetrics overview figure 5 and gleckler plots produced by the ETCCDI recipe. This would be one step towards recreating one figure from the set of perfmetric diagnostics.
If we manage to implement index calculation (i.e. via xclim) this could also recreate the figure from the ETCCDI recipe.
Branch and pull request PR: #3551 Branch:
perfmetric_python
Recipe:recipe_perfmetrics_python.yml
Produced figures