diff --git a/modules/util/util.py b/modules/util/util.py index 769e11e3aa99df1ef8f720e2abd375cea4a49564..15f31e1d68835ed7281a48a5c7fc3d1010f24e80 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -560,8 +560,8 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain # ------------------------------------------------------------------------------------------- -def write_icing_file(outfile, preds, x, y, lons, lats): - h5f_out = h5py.File(outfile, 'w') +def write_icing_file(outfile, clvrx_str_time, preds, x, y, lons, lats): + h5f_out = h5py.File(outfile+'_'+clvrx_str_time, 'w') icing_pred_ds = h5f_out.create_dataset('icing_prediction', data=preds, dtype='i2') icing_pred_ds.attrs.create('coordinates', data='y x') @@ -600,7 +600,7 @@ def write_icing_file(outfile, preds, x, y, lons, lats): x_ds.attrs.create('CFAC', data=20466275) x_ds.attrs.create('COFF', data=2750.5) - y_ds = h5f_out.create_dataset('y', data=x, dtype='f8') + y_ds = h5f_out.create_dataset('y', data=y, dtype='f8') y_ds.attrs.create('units', data='radians') y_ds.attrs.create('standard_name', data='projection_y_coordinate') y_ds.attrs.create('long_name', data='GOES PUG S-N fixed grid viewing angle')