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

snapshot...

parent 134bfd86
No related branches found
No related tags found
No related merge requests found
......@@ -734,23 +734,31 @@ class SRCNN:
gc.collect()
t0 = time.time()
s_x = slice(1912, 3512)
s_y = slice(1912, 3512)
h5f = h5py.File(in_file, 'r')
refl = get_grid_values_all(h5f, 'refl_0_65um_nom')
print(refl.shape)
refl = refl[1912:3512, 1912:3512]
print('FD dims: ', refl.shape)
refl = refl[s_y, s_x]
LEN_Y, LEN_X = refl.shape
print(refl.shape)
print('sub dims: ', refl.shape)
bt = get_grid_values_all(h5f, 'temp_11_0um_nom')
bt = bt[1912:3512, 1912:3512]
bt = bt[s_y, s_x]
cld_opd = get_grid_values_all(h5f, 'cld_opd_dcomp')
cld_opd = cld_opd[1912:3512, 1912:3512]
cld_opd = cld_opd[s_y, s_x]
refl_sub_lo = get_grid_values_all(h5f, 'refl_0_65um_nom_min_sub')
refl_sub_lo = refl_sub_lo[1912:3512, 1912:3512]
refl_sub_lo = refl_sub_lo[s_y, s_x]
refl_sub_hi = get_grid_values_all(h5f, 'refl_0_65um_nom_max_sub')
refl_sub_hi = refl_sub_hi[1912:3512, 1912:3512]
refl_sub_hi = refl_sub_hi[s_y, s_x]
refl_sub_std = get_grid_values_all(h5f, 'refl_0_65um_nom_stddev_sub')
refl_sub_std = refl_sub_std[1912:3512, 1912:3512]
refl_sub_std = refl_sub_std[s_y, s_x]
t1 = time.time()
print('read data time: ', (t1 - t0))
......
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