diff --git a/mlair/run_modules/post_processing.py b/mlair/run_modules/post_processing.py index 59abe4d6c20bfaca8aadc4b972ba10b6934657c4..feee07828f52b79747761e77cd27f0343dff6904 100644 --- a/mlair/run_modules/post_processing.py +++ b/mlair/run_modules/post_processing.py @@ -246,12 +246,16 @@ class PostProcessing(RunEnvironment): path_config.check_path_and_create(report_path) self.store_crps_reports(df_stations, report_path, subset, station=True) - full_ens = xr.concat(collector_ens, dim=self.index_dim) - full_obs = xr.concat(collector_obs, dim=self.index_dim) - df_tot = pd.DataFrame(self._calc_crps_for_lead_times(full_ens, full_obs), index=to_list(subset)) - self.store_crps_reports(df_tot, report_path, subset, station=False) + try: + full_ens = xr.concat(collector_ens, dim=self.index_dim) + full_obs = xr.concat(collector_obs, dim=self.index_dim) + df_tot = pd.DataFrame(self._calc_crps_for_lead_times(full_ens, full_obs), index=to_list(subset)) + self.store_crps_reports(df_tot, report_path, subset, station=False) + except Exception as e: + logging.info(f"Can't calc crps for all stations together due to: {e}") + @TimeTrackingWrapper def _calc_crps_for_lead_times(self, ens, obs): crps_collector = {} for i in range(1, self.window_lead_time + 1):