From c8024ac1d980c6bfec1d3d12ee4f4a52f24ab705 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sat, 20 Mar 2021 10:42:20 -0500 Subject: [PATCH] snapshot... --- modules/icing/pireps.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index 2bf5dd8f..47cfd137 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -6,6 +6,7 @@ NO_ICE = '\s*NEG\s*|\s*NONE\s*|\s*NEGATIVE\s*|\s*NO\s*' ICE_LVL = '\d+-\d+|FL\d+-FL\d+' # ICE Intensity: 0:No intensity report, 1:Trace, 2:Light, 3:Light Moderate, 4:Moderate, 5:Moderate Severe, 6:Severe +# NO/NEG -1 ICE_TRACE = '\s*TRACE\s*|\s*TRC\s*|\s*TR\s*' ICE_LGT = '\s*LGT\s*|\s*LIGHT\s*|\s*LT\s*|\s*LGHT\s*|\s*LIT\s*|\s*LITE\s*|\s*LG\s*' ICE_MOD = '\s*MOD\s*|\s*MDT\s*|\s*MODERATE\s*|\s*HEAVY\s*' @@ -76,7 +77,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]): if len(re.findall(NO_ICE, ice_str)) != 0: rpts = neg_ice_dict.get(timestmp) - tup = (lat, lon, fl, 0, ice_str) + tup = (lat, lon, fl, -1, ice_str) if rpts is None: rpts = [] rpts.append(tup) @@ -135,7 +136,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]): rpts.append(tup) rpts = no_ice_dict.get(timestmp) - tup = (lat, lon, fl, 0, 'no observed icing') + tup = (lat, lon, fl, -1, 'no observed icing') if rpts is None: rpts = [] rpts.append(tup) -- GitLab