Skip to content
Snippets Groups Projects
Commit 891e208f authored by leufen1's avatar leufen1
Browse files

assure that concat data has no nans

parent faaa3388
No related branches found
No related tags found
Loading
Pipeline #63178 passed
......@@ -440,7 +440,7 @@ class SkillScores:
"""Calculate CASE IV."""
AI, BI, CI, data, suffix = self.skill_score_pre_calculations(internal_data, observation_name, forecast_name)
monthly_mean_external = self.create_monthly_mean_from_daily_data(external_data, index=data.index)
data = xr.concat([data, monthly_mean_external], dim="type")
data = xr.concat([data, monthly_mean_external], dim="type").dropna(dim="index")
mean, sigma = suffix["mean"], suffix["sigma"]
mean_external = monthly_mean_external.mean()
sigma_external = np.sqrt(monthly_mean_external.var())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment