diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 7358b679da0f70ce7ab273a46512c4e533d59dda..d07d607ba32dfcacde27a0b9bdc5791ea7548b2b 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -107,10 +107,21 @@ def create_file(filename, data_dct, ds_list, lon_c, lat_c, time_s, fl_alt_s): data = data_dct[ds_name] h5f.create_dataset(ds_name, data=data) - (h5f.create_dataset('longitude', data=lon_c)).attrs.create('units', data='degrees_east') - (h5f.create_dataset('latitude', data=lat_c)).attrs.create('units', data='degrees_north') - (h5f.create_dataset('time', data=time_s)).attrs.create('units', data='seconds since 1970-1-1 00:00:00') - (h5f.create_dataset('icing_altitude', data=fl_alt_s)).attrs.create('units', data='m') + lon_ds = h5f.create_dataset('longitude', data=lon_c) + lon_ds.dims[0].label = 'time' + lon_ds.attrs.create('units', data='degrees_east') + + lat_ds = h5f.create_dataset('latitude', data=lat_c) + lat_ds.dims[0].label = 'time' + lat_ds.attrs.create('units', data='degrees_north') + + time_ds = h5f.create_dataset('time', data=time_s) + time_ds.dims[0].label = 'time' + time_ds.attrs.create('units', data='seconds since 1970-1-1 00:00:00') + + ice_alt_ds = h5f.create_dataset('icing_altitude', data=fl_alt_s) + ice_alt_ds.dims[0] = 'time' + ice_alt_ds.attrs.create('units', data='m') # copy relevant attributes for ds_name in ds_list: