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

fix some cf issues

parent 02a403c8
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,12 @@ def scan(directory):
for idx, file in enumerate(files):
h5f = h5py.File(file, 'r')
solzen = get_grid_values_all(h5f, 'solar_zenith_angle')
try:
solzen = get_grid_values_all(h5f, 'solar_zenith_angle')
except Exception as e:
print(e)
h5f.close()
continue
if is_night(solzen):
print(file)
h5f.close()
......
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