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

snapshot...

parent 2a8614c9
Branches
No related tags found
No related merge requests found
......@@ -20,6 +20,17 @@ time_keys = list(ice_dict.keys())
hist = np.zeros(20)
def get_clavrx_datasource(timestamp):
dt_obj, time_tup = get_time_tuple_utc(timestamp)
date_dir_str = dt_obj.strftime(dir_fmt)
ds = ds_dct.get(date_dir_str)
if ds is None:
ds = CLAVRx(clavrx_dir + date_dir_str + '/')
ds_dct[date_dir_str] = ds
return ds
for idx, time in enumerate(time_keys):
if (idx % 4) != 0:
continue
......@@ -37,17 +48,6 @@ for idx, time in enumerate(time_keys):
counts, edges = np.histogram(images[0,], range=[150, 350], bins=20)
hist += counts
def get_clavrx_datasource(timestamp):
dt_obj, time_tup = get_time_tuple_utc(timestamp)
date_dir_str = dt_obj.strftime(dir_fmt)
ds = ds_dct.get(date_dir_str)
if ds is None:
ds = CLAVRx(clavrx_dir + date_dir_str + '/')
ds_dct[date_dir_str] = ds
return ds
f = open('/home/rink/ice_hist.pkl', 'wb')
pickle.dump(hist, f)
f.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment