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

snapshot...

parent 9f157df1
Branches
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ f.close()
mean_std_dct.update(mean_std_dct_l1b)
mean_std_dct.update(mean_std_dct_l2)
class OpdNpyDataset:
def __init__(self, filenames, hr_size, lr_size, batch_size=128):
......@@ -179,12 +180,12 @@ class OpdNpyDataset:
fname = self.filenames[fi]
data = np.load(fname)
refl = data[0, ]
refl = data[0, 0, :, :]
refl = scale(refl, 'refl_0_65um_nom', mean_std_dct)
refl = refl.astype(np.float32)
refl_s.append(refl)
opd = data[1, ]
opd = data[0, 1, :, :]
opd = scale(opd, 'cld_opd_dcomp', mean_std_dct)
opd = opd.astype(np.float32)
opd_s.append(opd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment