diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-01-30 01:09:21 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-01-30 01:09:21 +0100 |
commit | cb09ec64c4d516508527f5af7bd939b3ad5941fd (patch) | |
tree | 3c995241e9490898575e507261786f5995cdb998 | |
parent | 29a21550e9cdaeb371190b5684dc6c2201b1a905 (diff) | |
download | meteo_toolbox-cb09ec64c4d516508527f5af7bd939b3ad5941fd.tar.gz |
fix hardcoded data _description
-rwxr-xr-x | plotter/horizontal.py | 3 |
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) |