Skip to content
Snippets Groups Projects
Commit 30d9b0fe authored by Bing Gong's avatar Bing Gong
Browse files

Update plot_ambs_forecast.py

parent 1aa4f897
No related branches found
No related tags found
No related merge requests found
Pipeline #81704 failed
...@@ -40,7 +40,7 @@ def create_plot(data: xr.DataArray, data_ref: xr.DataArray, varname: str, fcst_h ...@@ -40,7 +40,7 @@ def create_plot(data: xr.DataArray, data_ref: xr.DataArray, varname: str, fcst_h
coords = data.coords coords = data.coords
# handle coordinates and forecast times # handle coordinates and forecast times
lat, lon = coords["lat"], coords["lon"] 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: except Exception as err:
print("%{0}: Could not retrieve expected coordinates lat, lon and time_forecast from data.".format(method)) print("%{0}: Could not retrieve expected coordinates lat, lon and time_forecast from data.".format(method))
raise err raise err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment