From fc1c31e4ad33b58d9d28ebc38746af2bacb5b3ee Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 29 Oct 2021 14:34:46 -0500
Subject: [PATCH] snapshot...

---
 modules/util/util.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/util/util.py b/modules/util/util.py
index 4ce4560e..50470704 100644
--- a/modules/util/util.py
+++ b/modules/util/util.py
@@ -569,13 +569,13 @@ def write_icing_file(clvrx_str_time, preds_dct, probs_dct, x, y, lons, lats):
     flt_lvls = list(preds_dct.keys())
     for flvl in flt_lvls:
         preds = preds_dct[flvl]
-        icing_pred_ds = h5f_out.create_dataset('icing_prediction_level_'+flvl, data=preds, dtype='i2')
+        icing_pred_ds = h5f_out.create_dataset('icing_prediction_level_'+str(flvl), data=preds, dtype='i2')
         icing_pred_ds.attrs.create('coordinates', data='y x')
         icing_pred_ds.attrs.create('grid_mapping', data='Projection')
 
     for flvl in flt_lvls:
         probs = probs_dct[flvl]
-        icing_pred_ds = h5f_out.create_dataset('icing_probability_level_'+flvl, data=probs, dtype='f4')
+        icing_pred_ds = h5f_out.create_dataset('icing_probability_level_'+str(flvl), data=probs, dtype='f4')
         icing_pred_ds.attrs.create('coordinates', data='y x')
         icing_pred_ds.attrs.create('grid_mapping', data='Projection')
 
-- 
GitLab