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

snapshot...

parent 9629fc32
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ def extract(mask_image, image_ts, clavrx_path):
contrail_lats = contrail_lats[keep]
# Indexes of contrail_press for individual bins
bins = np.arange(100, 1000, 50)
binned_indexes = np.digitize(contrail_press, bins)
press_bins = np.arange(100, 1000, 50)
binned_indexes = np.digitize(contrail_press, press_bins)
# Store the indexes in a dictionary where the key is the bin number and value is the list of indexes
bins_dict = {}
......@@ -111,7 +111,7 @@ def extract(mask_image, image_ts, clavrx_path):
all_list = []
voxel_dict = {key: [] for key in bins_dict.keys()}
for key in bins_dict.keys():
press_level = bins[key]
press_level = press_bins[key]
print('working on pressure level: ', press_level)
for c_idx in bins_dict[key]:
press = contrail_press[c_idx]
......
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