Skip to content
Snippets Groups Projects
Commit 7077879c authored by leufen1's avatar leufen1
Browse files

also store competitive skill scores

parent b531461d
No related branches found
No related tags found
9 merge requests!353add developments to release v1.5.0,!352Resolve "release v1.5.0",!351Lukas issue337 bug ci pipeline fails for docs,!350Resolve "upgrade code to TensorFlow V2",!343Update wrf with develop,!342Include sample-uncertainty to wrf workflow,!340Lukas issue332 feat report error metrics for all competitors,!336Resolve "report error metrics for all competitors",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #80644 passed
......@@ -121,6 +121,7 @@ class PostProcessing(RunEnvironment):
self.skill_scores = (skill_score_competitive, skill_score_climatological)
self.report_error_metrics(errors)
self.report_error_metrics({self.forecast_indicator: skill_score_climatological})
self.report_error_metrics({"skill_score": skill_score_competitive})
# plotting
self.plot()
......@@ -842,6 +843,12 @@ class PostProcessing(RunEnvironment):
dim = station_errors.dims[0]
sel_index = [sel for sel in station_errors.coords[dim] if "CASE" in str(sel)]
station_errors = {str(i.values): station_errors.sel(**{dim: i}) for i in sel_index}
elif isinstance(station_errors, pd.DataFrame):
sel_index = station_errors.index.tolist()
ahead = station_errors.columns.values
station_errors = {k: xr.DataArray(station_errors[station_errors.index == k].values.flatten(),
dims=["ahead"], coords={"ahead": ahead}).astype(float)
for k in sel_index}
for metric, vals in station_errors.items():
if metric == "n":
metric = "count"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment