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

rename coordinate variables and dimensions properly

parent 2a666150
No related branches found
No related tags found
No related merge requests found
...@@ -714,7 +714,7 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon ...@@ -714,7 +714,7 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon
if x is not None: if x is not None:
x_ds = h5f_out.create_dataset('x', data=x, dtype='f8') x_ds = h5f_out.create_dataset('x', data=x, dtype='f8')
x_ds.dims[0] = dim_0_name x_ds.dims[0].label = dim_0_name
x_ds.attrs.create('units', data='rad') x_ds.attrs.create('units', data='rad')
x_ds.attrs.create('standard_name', data='projection_x_coordinate') x_ds.attrs.create('standard_name', data='projection_x_coordinate')
x_ds.attrs.create('long_name', data='GOES PUG W-E fixed grid viewing angle') x_ds.attrs.create('long_name', data='GOES PUG W-E fixed grid viewing angle')
...@@ -724,7 +724,7 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon ...@@ -724,7 +724,7 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon
x_ds.attrs.create('COFF', data=2750.5) x_ds.attrs.create('COFF', data=2750.5)
y_ds = h5f_out.create_dataset('y', data=y, dtype='f8') y_ds = h5f_out.create_dataset('y', data=y, dtype='f8')
y_ds.dims[0] = dim_1_name y_ds.dims[0].label = dim_1_name
y_ds.attrs.create('units', data='rad') y_ds.attrs.create('units', data='rad')
y_ds.attrs.create('standard_name', data='projection_y_coordinate') 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') y_ds.attrs.create('long_name', data='GOES PUG S-N fixed grid viewing angle')
...@@ -735,7 +735,9 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon ...@@ -735,7 +735,9 @@ def write_icing_file(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, lon
if elems is not None: if elems is not None:
elem_ds = h5f_out.create_dataset('elems', data=elems, dtype='i2') elem_ds = h5f_out.create_dataset('elems', data=elems, dtype='i2')
elem_ds.dims[0].label = dim_0_name
line_ds = h5f_out.create_dataset('lines', data=lines, dtype='i2') line_ds = h5f_out.create_dataset('lines', data=lines, dtype='i2')
line_ds.dims[0].label = dim_1_name
pass pass
h5f_out.close() h5f_out.close()
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