From 30d9b0fe0a788e91c2e48b014855dc38cfdd25f7 Mon Sep 17 00:00:00 2001
From: Bing Gong <b.gong@fz-juelich.de>
Date: Mon, 13 Sep 2021 12:08:23 +0200
Subject: [PATCH] Update plot_ambs_forecast.py

---
 video_prediction_tools/postprocess/plot_ambs_forecast.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/video_prediction_tools/postprocess/plot_ambs_forecast.py b/video_prediction_tools/postprocess/plot_ambs_forecast.py
index 69ac8bf2..2ba385eb 100644
--- a/video_prediction_tools/postprocess/plot_ambs_forecast.py
+++ b/video_prediction_tools/postprocess/plot_ambs_forecast.py
@@ -40,7 +40,7 @@ def create_plot(data: xr.DataArray, data_ref: xr.DataArray, varname: str, fcst_h
         coords = data.coords
         # handle coordinates and forecast times
         lat, lon = coords["lat"], coords["lon"]
-        dates_fcst = pd.to_datetime(coords["time_forecast"].data)
+        dates_fcst = pd.to_datetime(coords["fcst_hour"].data)
     except Exception as err:
         print("%{0}: Could not retrieve expected coordinates lat, lon and time_forecast from data.".format(method))
         raise err
-- 
GitLab