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

snapshot...

parent 151c1169
No related branches found
No related tags found
No related merge requests found
...@@ -405,28 +405,34 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct): ...@@ -405,28 +405,34 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct):
last_file = None last_file = None
no_ice_files = [] no_ice_files = []
no_ice_times = [] no_ice_times = []
no_ice_keys = []
for ts in list(no_ice_dct.keys()): for ts in list(no_ice_dct.keys()):
try: try:
ds = get_goes_datasource(ts) ds = get_goes_datasource(ts)
goes_file, t_0, _ = ds.get_file(ts) goes_file, t_0, _ = ds.get_file(ts)
if goes_file is not None and goes_file != last_file: if goes_file is not None and goes_file != last_file:
no_ice_files.append(goes_file) rpts = no_ice_dct[ts]
no_ice_times.append(t_0) for tup in rpts:
last_file = goes_file no_ice_files.append(goes_file)
no_ice_times.append(t_0)
last_file = goes_file
except Exception: except Exception:
continue continue
last_file = None last_file = None
neg_ice_files = [] neg_ice_files = []
neg_ice_times = [] neg_ice_times = []
neg_ice_keys = []
for ts in list(neg_ice_dct.keys()): for ts in list(neg_ice_dct.keys()):
try: try:
ds = get_goes_datasource(ts) ds = get_goes_datasource(ts)
goes_file, t_0, _ = ds.get_file(ts) goes_file, t_0, _ = ds.get_file(ts)
if goes_file is not None and goes_file != last_file: if goes_file is not None and goes_file != last_file:
neg_ice_files.append(goes_file) rpts = neg_ice_dct[ts]
neg_ice_times.append(t_0) for tup in rpts:
last_file = goes_file neg_ice_files.append(goes_file)
neg_ice_times.append(t_0)
last_file = goes_file
except Exception: except Exception:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment