aboutsummaryrefslogtreecommitdiff
path: root/plotter/vertical_from_grib.py
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-07-22 23:28:21 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-07-22 23:28:21 +0200
commit61106b34eca95709d5c79eaf5376ea5158074abb (patch)
treea6db4ee4bd5b33b518cb02b675b076ade3290466 /plotter/vertical_from_grib.py
parent46c1add9b4d31adf2ed4803c0b74a99df5856922 (diff)
downloadmeteo_toolbox-61106b34eca95709d5c79eaf5376ea5158074abb.tar.gz
slightly changed index
Diffstat (limited to 'plotter/vertical_from_grib.py')
-rwxr-xr-xplotter/vertical_from_grib.py6
1 files changed, 4 insertions, 2 deletions
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)