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

snapshot...

parent d49acd45
No related branches found
No related tags found
No related merge requests found
......@@ -116,15 +116,15 @@ def extract(mask_image, image_ts, clavrx_path):
# tmp = horz_shear_3d.sel(Pressure=press, method='nearest')
# tmp = tmp.sel(Longitude=lon, Latitude=lat, method='nearest')
levels_dict[press_bins[key]].append((press_level, press, lat, lon, temp_value, rh_value, horz_shear_value, static_value, horz_wind_spd_value, vert_shear_value))
levels_dict[press_level].append((press, lat, lon, temp_value, rh_value, horz_shear_value, static_value, horz_wind_spd_value, vert_shear_value))
all_list.append((press_level, press, lat, lon, temp_value, rh_value, horz_shear_value, static_value, horz_wind_spd_value, vert_shear_value))
# Create pandas DataFrame for each list of tuples in voxel_dict
voxel_dict_df = {}
for k, v in levels_dict.items():
print(k, len(v))
print('pressure level, number of contrail points: ', k, len(v))
df = pd.DataFrame(v,
columns=["pressure_level", "pressure", "lat", "lon", "temperature", "relative_humidity",
columns=["pressure", "lat", "lon", "temperature", "relative_humidity",
"horz_shear_deform", "static_stability", "horz_wind_speed", "vert_wind_shear"])
voxel_dict_df[k] = df
......
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