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

snapshot...

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