From 61106b34eca95709d5c79eaf5376ea5158074abb Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 22 Jul 2024 23:28:21 +0200 Subject: slightly changed index --- plotter/vertical_from_grib.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plotter/vertical_from_grib.py') diff --git a/plotter/vertical_from_grib.py b/plotter/vertical_from_grib.py index ff454b3..8e4fd60 100755 --- a/plotter/vertical_from_grib.py +++ b/plotter/vertical_from_grib.py @@ -86,14 +86,16 @@ def _plot(data, output, name, lat=None, lon=None, analysis=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'skewt_{name}.index.json'), 'w') as f: f.write(json.dumps(index, indent=4)) - return {'name': name, 'indexfile': f'skewt_{name}.index.json'} + return {'name': name, 'indexfile': f'skewt_{name}.index.json', 'list_title': 'Location'} if __name__ == '__main__': run(**config) -- cgit v1.2.3