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

snapshot...

parent bc6f62e9
No related branches found
No related tags found
No related merge requests found
...@@ -358,14 +358,19 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct): ...@@ -358,14 +358,19 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct):
ice_times = [] ice_times = []
ice_files_5_6 = [] ice_files_5_6 = []
ice_times_5_6 = [] ice_times_5_6 = []
ice_keys_5_6 = []
ice_files_1 = [] ice_files_1 = []
ice_times_1 = [] ice_times_1 = []
ice_keys_1 = []
ice_files_4 = [] ice_files_4 = []
ice_times_4 = [] ice_times_4 = []
ice_keys_4 = []
ice_files_3 = [] ice_files_3 = []
ice_times_3 = [] ice_times_3 = []
ice_keys_3 = []
ice_files_2 = [] ice_files_2 = []
ice_times_2 = [] ice_times_2 = []
ice_keys_2 = []
for ts in list(ice_dct.keys()): for ts in list(ice_dct.keys()):
try: try:
ds = get_goes_datasource(ts) ds = get_goes_datasource(ts)
...@@ -376,18 +381,23 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct): ...@@ -376,18 +381,23 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct):
if tup[3] == 5 or tup[3] == 6: if tup[3] == 5 or tup[3] == 6:
ice_files_5_6.append(goes_file) ice_files_5_6.append(goes_file)
ice_times_5_6.append(t_0) ice_times_5_6.append(t_0)
ice_keys_5_6.append(ts)
elif tup[3] == 1: elif tup[3] == 1:
ice_files_1.append(goes_file) ice_files_1.append(goes_file)
ice_times_1.append(t_0) ice_times_1.append(t_0)
ice_keys_1.append(ts)
elif tup[3] == 4: elif tup[3] == 4:
ice_files_4.append(goes_file) ice_files_4.append(goes_file)
ice_times_4.append(t_0) ice_times_4.append(t_0)
ice_keys_4.append(ts)
elif tup[3] == 3: elif tup[3] == 3:
ice_files_3.append(goes_file) ice_files_3.append(goes_file)
ice_times_3.append(t_0) ice_times_3.append(t_0)
ice_keys_3.append(ts)
else: else:
ice_files_2.append(goes_file) ice_files_2.append(goes_file)
ice_times_2.append(t_0) ice_times_2.append(t_0)
ice_keys_2.append(ts)
last_file = goes_file last_file = goes_file
except Exception: except Exception:
continue continue
...@@ -449,6 +459,8 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct): ...@@ -449,6 +459,8 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct):
no_ice_times = np.array(no_ice_times) no_ice_times = np.array(no_ice_times)
neg_ice_times = np.array(neg_ice_times) neg_ice_times = np.array(neg_ice_times)
print('no ice: ', no_ice_times.shape)
print('neg ice: ', neg_ice_times.shape)
itrsct_vals, comm1, comm2 = np.intersect1d(ice_times_1, ice_times_4, return_indices=True) itrsct_vals, comm1, comm2 = np.intersect1d(ice_times_1, ice_times_4, return_indices=True)
print(itrsct_vals.shape) print(itrsct_vals.shape)
......
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