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

snapshot...

parent 1e14a519
No related branches found
No related tags found
No related merge requests found
...@@ -53,13 +53,6 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -53,13 +53,6 @@ def extract(mask_image, image_ts, clavrx_path):
contrail_idxs = (mask_image == 1).flatten() contrail_idxs = (mask_image == 1).flatten()
# Assuming GOES FD for now -------------------
# elems, lines = np.meshgrid(np.arange(5424), np.arange(5424))
# lines, elems = lines.flatten(), elems.flatten()
# See note above regarding support for GOES-18
# contrail_lines, contrail_elems = lines[contrail_idxs], elems[contrail_idxs]
# contrail_lons, contrail_lats = geos_nav.lc_to_earth(contrail_elems, contrail_lines)
contrail_press = cloud_top_press[contrail_idxs] contrail_press = cloud_top_press[contrail_idxs]
contrail_lons, contrail_lats = clvrx_lons[contrail_idxs], clvrx_lats[contrail_idxs] contrail_lons, contrail_lats = clvrx_lons[contrail_idxs], clvrx_lats[contrail_idxs]
...@@ -140,6 +133,7 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -140,6 +133,7 @@ def extract(mask_image, image_ts, clavrx_path):
# Create pandas DataFrame for each list of tuples in voxel_dict # Create pandas DataFrame for each list of tuples in voxel_dict
voxel_dict_df = {} voxel_dict_df = {}
for k, v in voxel_dict.items(): for k, v in voxel_dict.items():
print(k, len(v))
df = pd.DataFrame(v, columns=["pressure", "lat", "lon", "horz_wind_shear", "static_stability", "horz_wind_speed", "vert_wind_shear"]) df = pd.DataFrame(v, columns=["pressure", "lat", "lon", "horz_wind_shear", "static_stability", "horz_wind_speed", "vert_wind_shear"])
voxel_dict_df[k] = df voxel_dict_df[k] = df
...@@ -151,6 +145,10 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -151,6 +145,10 @@ def extract(mask_image, image_ts, clavrx_path):
return all_df return all_df
def analyze(dataFrame):
pass
......
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