diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index c3a2f22ce334438979219dee1fe52c31202eef9f..0df5b869795555bc73a72910797ac00dffcf5b8c 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()