Skip to content
Snippets Groups Projects
Commit 3d10f548 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent a476563f
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment