From 066c20d23c7084121e14b9a340bc77f3e8476437 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Fri, 28 Mar 2025 11:13:35 -0400 Subject: [PATCH] Add --any-severe flag --- bin/xmet-spc-render-file | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/xmet-spc-render-file b/bin/xmet-spc-render-file index b440910..a40355b 100755 --- a/bin/xmet-spc-render-file +++ b/bin/xmet-spc-render-file @@ -56,6 +56,7 @@ def render_probabilistic(conus: SPCOutlookMap, argparser = argparse.ArgumentParser(description='Render graphical SPC outlooks from text file') argparser.add_argument('--dark', action='store_true', help='Output dark mode graphics') argparser.add_argument('--categorical', type=str, help='Output categorical risk graphic file') +argparser.add_argument('--any-severe', type=str, help='Output probabilistic severe risk graphic file') argparser.add_argument('--tornado', type=str, help='Output probabilistic hail risk graphic file') argparser.add_argument('--hail', type=str, help='Output probabilistic hail risk graphic file') argparser.add_argument('--wind', type=str, help='Output probabilistic wind risk graphic file') @@ -72,6 +73,9 @@ with open(args.outlook, 'r') as fh: if args.categorical is not None: render_categorical(conus, outlook, args) +if args.any_severe is not None: + render_probabilistic(conus, outlook, 'any severe', args.any_severe, args) + if args.tornado is not None: render_probabilistic(conus, outlook, 'tornado', args.tornado, args)