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

snapshot...

parent 19384ac3
No related branches found
No related tags found
No related merge requests found
......@@ -699,20 +699,20 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
refl = get_grid_values_all(h5f, 'super/refl_0_65um')
ylen, xlen = refl.shape
refl = refl[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)]
refl = refl[int(ylen/2):ylen, (int(xlen/2)-1000):(int(xlen/2)+1000)]
LEN_Y, LEN_X = refl.shape
bt = get_grid_values_all(h5f, 'orig/temp_11_0um')
ylen, xlen = bt.shape
bt = bt[int(ylen/2):ylen, (int(xlen/2)-400):(int(xlen/2)+400)]
bt = bt[int(ylen/2):ylen, (int(xlen/2)-500):(int(xlen/2)+500)]
cld_opd_orig = get_grid_values_all(h5f, 'orig/' + label_param)
ylen, xlen = cld_opd_orig.shape
cld_opd_orig = cld_opd_orig[int(ylen/2):ylen, (int(xlen/2)-400):(int(xlen/2)+400)]
cld_opd_orig = cld_opd_orig[int(ylen/2):ylen, (int(xlen/2)-500):(int(xlen/2)+500)]
cld_opd = get_grid_values_all(h5f, 'super/' + label_param)
ylen, xlen = cld_opd.shape
cld_opd = cld_opd[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)]
cld_opd = cld_opd[int(ylen/2):ylen, (int(xlen/2)-1000):(int(xlen/2)+1000)]
cld_opd_hres = cld_opd.copy()
refl = np.where(np.isnan(refl), 0, refl)
......@@ -732,17 +732,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
bt = smooth_2d(bt)
bt = normalize(bt, 'temp_11_0um_nom', mean_std_dct)
# refl = get_grid_values_all(h5f, 'super/refl_0_65um')
# refl = np.where(np.isnan(refl), 0, refl)
# refl = np.expand_dims(refl, axis=0)
# refl_lo, refl_hi, refl_std, refl_avg = get_min_max_std(refl)
# refl_lo = normalize(refl_lo, 'refl_0_65um_nom', mean_std_dct)
# refl_hi = normalize(refl_hi, 'refl_0_65um_nom', mean_std_dct)
# refl_avg = normalize(refl_avg, 'refl_0_65um_nom', mean_std_dct)
# refl_lo = np.squeeze(refl_lo)
# refl_hi = np.squeeze(refl_hi)
# refl_avg = np.squeeze(refl_avg)
# cld_opd = np.where(np.isnan(cld_opd), 0, cld_opd)
# cld_opd = cld_opd[nn.slc_y_2, nn.slc_x_2]
# cld_opd = np.expand_dims(cld_opd, axis=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment