aboutsummaryrefslogtreecommitdiff
path: root/plotter/horizontal.py
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-30 01:09:21 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-01-30 01:09:21 +0100
commitcb09ec64c4d516508527f5af7bd939b3ad5941fd (patch)
tree3c995241e9490898575e507261786f5995cdb998 /plotter/horizontal.py
parent29a21550e9cdaeb371190b5684dc6c2201b1a905 (diff)
downloadmeteo_toolbox-cb09ec64c4d516508527f5af7bd939b3ad5941fd.tar.gz
fix hardcoded data _description
Diffstat (limited to 'plotter/horizontal.py')
-rwxr-xr-xplotter/horizontal.py3
1 files changed, 2 insertions, 1 deletions
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)