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

snapshot...

parent b0bd4e22
No related branches found
No related tags found
No related merge requests found
...@@ -119,11 +119,11 @@ def extract(mask_image, image_ts, clavrx_path): ...@@ -119,11 +119,11 @@ def extract(mask_image, image_ts, clavrx_path):
for key in bins_dict.keys(): for key in bins_dict.keys():
print('working on pressure level: ', bins[key]) print('working on pressure level: ', bins[key])
for c_idx in bins_dict[key]: for c_idx in bins_dict[key]:
press = contrail_press[c_idx]
lat = contrail_lats[c_idx]
lon = contrail_lons[c_idx] lon = contrail_lons[c_idx]
if lon < 0: # Match GFS convention if lon < 0: # Match GFS convention
lon += 360.0 lon += 360.0
lat = contrail_lats[c_idx]
press = contrail_press[c_idx]
horz_shear_value = horz_shear_3d.interp(Pressure=press, Longitude=lon, Latitude=lat, method='nearest') horz_shear_value = horz_shear_3d.interp(Pressure=press, Longitude=lon, Latitude=lat, method='nearest')
static_value = static_3d.interp(Pressure=press, Longitude=lon, Latitude=lat, method='nearest') static_value = static_3d.interp(Pressure=press, Longitude=lon, Latitude=lat, method='nearest')
......
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