From cb09ec64c4d516508527f5af7bd939b3ad5941fd Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 30 Jan 2024 01:09:21 +0100 Subject: fix hardcoded data _description --- plotter/horizontal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plotter') diff --git a/plotter/horizontal.py b/plotter/horizontal.py index 8f84cbb..d75236b 100755 --- a/plotter/horizontal.py +++ b/plotter/horizontal.py @@ -69,7 +69,8 @@ def _plot(data, output, name, layers, area = None): panel.layers = ['coastline', 'borders'] panel.plots = map_layers panel.left_title = f'{name} VALID: {valid_str} (INIT +{hours_since_init_str}) INIT: {init_str}' - panel.right_title = 'FORECAST DWD ICON-EU' + if '_description' in data.attrs: + panel.right_title = data.attrs['_description'] pc = PanelContainer() pc.size = (12.8, 9.6) -- cgit v1.2.3