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

snapshot...

parent 9cb85a62
Branches
No related tags found
No related merge requests found
...@@ -755,14 +755,6 @@ class SRCNN: ...@@ -755,14 +755,6 @@ class SRCNN:
self.x_k = slice(1, LEN_X + 3) self.x_k = slice(1, LEN_X + 3)
self.y_k = slice(1, LEN_Y + 3) self.y_k = slice(1, LEN_Y + 3)
# refl = np.where(np.isnan(refl), 0, refl)
# refl = refl[slc_y, slc_x]
# refl = np.expand_dims(refl, axis=0)
# refl_us = upsample_static(refl, x_2, y_2, t, s, None, None)
# print(refl_us.shape)
# refl_us = normalize(refl_us, 'refl_0_65um_nom', mean_std_dct)
# print('REFL done')
t0 = time.time() t0 = time.time()
bt = np.where(np.isnan(bt), 0, bt) bt = np.where(np.isnan(bt), 0, bt)
bt = bt[self.slc_y_m, self.slc_x_m] bt = bt[self.slc_y_m, self.slc_x_m]
...@@ -774,8 +766,7 @@ class SRCNN: ...@@ -774,8 +766,7 @@ class SRCNN:
refl = np.where(np.isnan(refl), 0, refl) refl = np.where(np.isnan(refl), 0, refl)
refl = refl[self.slc_y_m, self.slc_x_m] refl = refl[self.slc_y_m, self.slc_x_m]
bt = np.expand_dims(refl, axis=0) refl = np.expand_dims(refl, axis=0)
# bt_us = upsample_static(bt, x_2, y_2, t, s, None, None)
refl_us = self.upsample(refl) refl_us = self.upsample(refl)
refl_us = smooth_2d(refl_us) refl_us = smooth_2d(refl_us)
refl_us = normalize(refl_us, 'refl_0_65um_nom', mean_std_dct) refl_us = normalize(refl_us, 'refl_0_65um_nom', mean_std_dct)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment