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

snapshot...

parent 72946544
No related branches found
No related tags found
No related merge requests found
...@@ -82,19 +82,18 @@ def run(): ...@@ -82,19 +82,18 @@ def run():
clvr_file = clvr_ds.get_file(time) clvr_file = clvr_ds.get_file(time)
if clvr_file is None: if clvr_file is None:
continue continue
if last_clvr_file is None: if clvr_file != last_clvr_file:
try:
h5f = h5py.File(clvr_file, 'r')
except Exception:
h5f.close()
print('Problem with file: ', clvr_file)
continue
if last_h5f is not None:
last_h5f.close()
last_h5f = h5f
last_clvr_file = clvr_file last_clvr_file = clvr_file
else: else:
if clvr_file == last_clvr_file: h5f = last_h5f
hf5 = last_h5f
else:
last_h5f.close()
try:
h5f = h5py.File(clvr_file, 'r')
except Exception:
h5f.close()
print('Problem with file: ', clvr_file)
continue
last_h5f = hf5
gvals = get_grid_values(h5f, 'temp_11_0um_nom', ll[0], cc[0], 20) gvals = get_grid_values(h5f, 'temp_11_0um_nom', ll[0], cc[0], 20)
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