diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-07-22 23:28:21 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-07-22 23:28:21 +0200 |
commit | 61106b34eca95709d5c79eaf5376ea5158074abb (patch) | |
tree | a6db4ee4bd5b33b518cb02b675b076ade3290466 /plotter/horizontal.py | |
parent | 46c1add9b4d31adf2ed4803c0b74a99df5856922 (diff) | |
download | meteo_toolbox-61106b34eca95709d5c79eaf5376ea5158074abb.tar.gz |
slightly changed index
Diffstat (limited to 'plotter/horizontal.py')
-rwxr-xr-x | plotter/horizontal.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plotter/horizontal.py b/plotter/horizontal.py index d75236b..218fd33 100755 --- a/plotter/horizontal.py +++ b/plotter/horizontal.py @@ -87,14 +87,16 @@ def _plot(data, output, name, layers, area = None): 'file': outname, 'init': init_str, 'valid': valid_str, - 'valid_offset': hours_since_init_str + 'valid_offset': hours_since_init_str, + 'display_name': name, + 'id': name } ) with open(os.path.join(output, f'{name}.index.json'), 'w') as f: f.write(json.dumps(index, indent=4)) - return { 'name': name, 'indexfile': f'{name}.index.json' } + return { 'name': name, 'indexfile': f'{name}.index.json', 'list_title': 'INIT+' } def _layer(data, layertype, **kwargs): layertypes={ |