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

snapshot...

parent 652723ef
No related branches found
No related tags found
No related merge requests found
...@@ -812,7 +812,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, ...@@ -812,7 +812,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct,
icing_pred_ds.setncattr('grid_mapping', 'Projection') icing_pred_ds.setncattr('grid_mapping', 'Projection')
icing_pred_ds.setncattr('missing', -1) icing_pred_ds.setncattr('missing', -1)
if has_time: if has_time:
preds = preds.reshap((1, y.shape[0], x.shape[0])) preds = preds.reshape((1, y.shape[0], x.shape[0]))
icing_pred_ds[:,] = preds icing_pred_ds[:,] = preds
for flvl in flt_lvls: for flvl in flt_lvls:
...@@ -824,7 +824,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, ...@@ -824,7 +824,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct,
icing_prob_ds.setncattr('grid_mapping', 'Projection') icing_prob_ds.setncattr('grid_mapping', 'Projection')
icing_prob_ds.setncattr('missing', -1.0) icing_prob_ds.setncattr('missing', -1.0)
if has_time: if has_time:
probs = probs.reshap((1, y.shape[0], x.shape[0])) probs = probs.reshape((1, y.shape[0], x.shape[0]))
icing_prob_ds[:,] = probs icing_prob_ds[:,] = probs
prob_s = np.stack(prob_s, axis=-1) prob_s = np.stack(prob_s, axis=-1)
...@@ -840,7 +840,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, ...@@ -840,7 +840,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct,
max_lvl = np.argmax(prob_s, axis=2) max_lvl = np.argmax(prob_s, axis=2)
if has_time: if has_time:
max_lvl = max_lvl.reshap((1, y.shape[0], x.shape[0])) max_lvl = max_lvl.reshape((1, y.shape[0], x.shape[0]))
icing_pred_ds = rootgrp.createVariable('max_icing_probability_level', 'i2', var_dim_list) icing_pred_ds = rootgrp.createVariable('max_icing_probability_level', 'i2', var_dim_list)
icing_pred_ds.setncattr('coordinates', geo_coords) icing_pred_ds.setncattr('coordinates', geo_coords)
......
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