From 3c8238abce6e87fdfefa0c16a30844b9b12b2eff Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 16 Mar 2021 14:15:24 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 8467a61a..778826f7 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -125,9 +125,14 @@ def create_file(filename, data_dct, ds_list, lon_c, lat_c, time_s, fl_alt_s):
 
     # copy relevant attributes
     for ds_name in ds_list:
-        h5f[ds_name].attrs.create('standard_name', data=h5f_expl[ds_name].attrs.get('standard_name'))
-        h5f[ds_name].attrs.create('long_name', data=h5f_expl[ds_name].attrs.get('long_name'))
-        h5f[ds_name].attrs.create('units', data=h5f_expl[ds_name].attrs.get('units'))
+        h5f_ds = h5f[ds_name]
+        h5f_ds.attrs.create('standard_name', data=h5f_expl[ds_name].attrs.get('standard_name'))
+        h5f_ds.attrs.create('long_name', data=h5f_expl[ds_name].attrs.get('long_name'))
+        h5f_ds.attrs.create('units', data=h5f_expl[ds_name].attrs.get('units'))
+        h5f_ds.dims[0].label = 'time'
+        h5f_ds.dims[1].label = 'y'
+        h5f_ds.dims[2].label = 'x'
+
 
     h5f.close()
 
-- 
GitLab