From 70b8455478e60f6bf118ba703da1e620933f1c7c Mon Sep 17 00:00:00 2001 From: Michael <m.langguth@fz-juelich.de> Date: Sun, 30 May 2021 14:47:18 +0200 Subject: [PATCH] Corrected handling of data arrays before creation of conditional quantile plot in main_visualize_postprocess.py. --- .../main_scripts/main_visualize_postprocess.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/video_prediction_tools/main_scripts/main_visualize_postprocess.py b/video_prediction_tools/main_scripts/main_visualize_postprocess.py index 0f452429..79430820 100644 --- a/video_prediction_tools/main_scripts/main_visualize_postprocess.py +++ b/video_prediction_tools/main_scripts/main_visualize_postprocess.py @@ -782,11 +782,10 @@ class Postprocess(TrainModel): var_fcst = "{0}_{1}_fcst".format(self.vars_in[self.channel], self.model) var_ref = "{0}_ref".format(self.vars_in[self.channel]) - get_era5_varatts(self.cond_quantiple_ds[var_fcst], self.cond_quantiple_ds[var_fcst].name) - get_era5_varatts(self.cond_quantiple_ds[var_fcst], self.cond_quantiple_ds[var_fcst].name) + data_fcst = get_era5_varatts(self.cond_quantiple_ds[var_fcst], self.cond_quantiple_ds[var_fcst].name) + data_ref = get_era5_varatts(self.cond_quantiple_ds[var_ref], self.cond_quantiple_ds[var_ref].name) # create plots - data_fcst, data_ref = self.cond_quantiple_ds[var_fcst], self.cond_quantiple_ds[var_ref] fhhs = data_fcst.coords["fcst_hour"] for hh in fhhs: # calibration refinement factorization -- GitLab