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

snapshot...

parent 0e1e7155
No related branches found
No related tags found
No related merge requests found
...@@ -48,13 +48,12 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -48,13 +48,12 @@ def extract(mask_image, image_ts, clavrx_path):
clvrx_lons = get_grid_values_all(clvrx_h5f, 'longitude').flatten() clvrx_lons = get_grid_values_all(clvrx_h5f, 'longitude').flatten()
clvrx_lats = get_grid_values_all(clvrx_h5f, 'latitude').flatten() clvrx_lats = get_grid_values_all(clvrx_h5f, 'latitude').flatten()
# Assuming GOES FD for now -------------------
elems, lines = np.meshgrid(np.arange(5424), np.arange(5424))
lines, elems = lines.flatten(), elems.flatten()
contrail_idxs = (mask_image == 1).flatten() contrail_idxs = (mask_image == 1).flatten()
print('number of contrail pixels: ', np.sum(contrail_idxs)) print('number of contrail pixels: ', np.sum(contrail_idxs))
# 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 # See note above regarding support for GOES-18
# contrail_lines, contrail_elems = lines[contrail_idxs], elems[contrail_idxs] # contrail_lines, contrail_elems = lines[contrail_idxs], elems[contrail_idxs]
# contrail_lons, contrail_lats = geos_nav.lc_to_earth(contrail_elems, contrail_lines) # contrail_lons, contrail_lats = geos_nav.lc_to_earth(contrail_elems, contrail_lines)
...@@ -68,7 +67,7 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -68,7 +67,7 @@ def extract(mask_image, image_ts, clavrx_path):
contrail_lats = contrail_lats[keep] contrail_lats = contrail_lats[keep]
wind = get_point_s(xr_dataset, ['u-wind','v-wind'], contrail_lons, contrail_lats, contrail_press) wind = get_point_s(xr_dataset, ['u-wind','v-wind'], contrail_lons, contrail_lats, contrail_press)
print(wind)
......
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