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

initial commit...

parent 44654e9d
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,10 @@ def run_all(directory):
for idx, l1b_f in enumerate(l1b_files):
if idx % 8 == 0:
w_o_ext, ext = os.path.splitext(l1b_f)
l2_f = w_o_ext+'.highres'+ext
if not os.path.exists(l2_f):
continue
# w_o_ext, ext = os.path.splitext(l1b_f)
# l2_f = w_o_ext+'.highres'+ext
# if not os.path.exists(l2_f):
# continue
print(l1b_f)
try:
......@@ -36,22 +36,22 @@ def run_all(directory):
print('cant open file: ', l1b_f)
continue
try:
l2_h5f = h5py.File(l2_f, 'r')
except:
print('cant open file: ', l2_f)
l1b_h5f.close()
continue
# try:
# l2_h5f = h5py.File(l2_f, 'r')
# except:
# print('cant open file: ', l2_f)
# l1b_h5f.close()
# continue
try:
run(l1b_h5f, l2_h5f, l1b_tiles, l2_tiles)
run(l1b_h5f, None, l1b_tiles, l2_tiles)
except:
l1b_h5f.close()
l2_h5f.close()
# l2_h5f.close()
continue
l1b_h5f.close()
l2_h5f.close()
# l2_h5f.close()
if len(l1b_tiles) or len(l2_tiles) == 0:
continue
......
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