Skip to content
Snippets Groups Projects
Commit 4c596cc8 authored by leufen1's avatar leufen1
Browse files

small fix

parent 4d580107
No related branches found
No related tags found
5 merge requests!319add all changes of dev into release v1.4.0 branch,!318Resolve "release v1.4.0",!317enabled window_lead_time=1,!295Resolve "data handler FIR filter",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #66614 passed
......@@ -333,7 +333,7 @@ class SkillScores:
skill_score.loc[["CASE II", "AII", "BII"], iahead] = np.stack(self._climatological_skill_score(
data, mu_type=2, forecast_name=forecast_name, observation_name=self.observation_name).values.flatten())
if self.external_data is not None:
if self.external_data is not None and self.observation_name in self.external_data.coords["type"]:
external_data = self.external_data.sel(ahead=iahead, type=[self.observation_name])
skill_score.loc[["CASE III", "AIII"], iahead] = np.stack(self._climatological_skill_score(
data, mu_type=3, forecast_name=forecast_name, observation_name=self.observation_name,
......
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