From 8e89b15a173d6e7515cae5d4b9b5a66a9289aec9 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sun, 2 Jan 2022 16:45:58 -0600 Subject: [PATCH] snapshot... --- modules/icing/pireps.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index c3a2f22c..0df5b869 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -207,11 +207,23 @@ def pirep_icing_from_boeing(dirname='/ships19/cloud/scratch/ICING/BOEING/icing/2 if ice_bool[k] == 1: tup = (lats[k], lons[k], flt_levs[k], 1, 0, 'None') - ice_dict[ts] = tup + rpts = ice_dict.get(ts) + if rpts is None: + rpts = [] + rpts.append(tup) + ice_dict[ts] = rpts + else: + rpts.append(tup) cnt_ice += 1 else: tup = (lats[k], lons[k], flt_levs[k], 0, 0, 'None') - no_ice_dict[ts] = tup + rpts = no_ice_dict.get(ts) + if rpts is None: + rpts = [] + rpts.append(tup) + no_ice_dict[ts] = rpts + else: + rpts.append(tup) cnt_no_ice += 1 h5f.close() -- GitLab