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

snaphot...

parent e464953f
No related branches found
No related tags found
No related merge requests found
...@@ -381,11 +381,16 @@ def compute_and_add_geo_hgt(path_to_amvs, path_to_gfs, amv_source, band='14', ou ...@@ -381,11 +381,16 @@ def compute_and_add_geo_hgt(path_to_amvs, path_to_gfs, amv_source, band='14', ou
temp_prof = temp_prof.values temp_prof = temp_prof.values
temp_prof_s = temp_prof[0, :, :] temp_prof_s = temp_prof[0, :, :]
alt_f = []
for k in range(num_amvs): for k in range(num_amvs):
amv_press = amvs_nd[k, amv_pres_idx] amv_press = amvs_nd[k, amv_pres_idx]
alt = pressure_to_altitude(amv_press, None, gfs_press, temp_prof_s[k, :]) alt = pressure_to_altitude(amv_press, None, gfs_press, temp_prof_s[k, :])
alt_s.append(alt.magnitude) alt_s.append(alt.magnitude)
alt_f.append(alt.magnitude)
prs_s.append(amv_press) prs_s.append(amv_press)
alt_f = np.array(alt_f)
amvs_nd = np.hstack([amvs_nd, alt_s])
print(amvs_nd.shape)
print('Done...') print('Done...')
alt_s = np.array(alt_s) alt_s = np.array(alt_s)
......
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