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

snapshot...

parent 08687ce9
No related branches found
No related tags found
No related merge requests found
...@@ -579,7 +579,7 @@ def run_best_fit_gfs_all(amvs, gfs_filename): ...@@ -579,7 +579,7 @@ def run_best_fit_gfs_all(amvs, gfs_filename):
def run_best_fit_gfs(amvs, gfs_filename, amv_lat_idx=amv_lat_idx, amv_lon_idx=amv_lon_idx, amv_prs_idx=amv_prs_idx, def run_best_fit_gfs(amvs, gfs_filename, amv_lat_idx=amv_lat_idx, amv_lon_idx=amv_lon_idx, amv_prs_idx=amv_prs_idx,
amv_spd_idx=amv_spd_idx, amv_dir_idx=amv_dir_idx): amv_spd_idx=amv_spd_idx, amv_dir_idx=amv_dir_idx, method='nearest'):
xr_dataset = xr.open_dataset(gfs_filename) xr_dataset = xr.open_dataset(gfs_filename)
num_amvs = amvs.shape[0] num_amvs = amvs.shape[0]
bestfits = [] bestfits = []
...@@ -588,7 +588,7 @@ def run_best_fit_gfs(amvs, gfs_filename, amv_lat_idx=amv_lat_idx, amv_lon_idx=am ...@@ -588,7 +588,7 @@ def run_best_fit_gfs(amvs, gfs_filename, amv_lat_idx=amv_lat_idx, amv_lon_idx=am
gfs_press = gfs_press.data gfs_press = gfs_press.data
gfs_press = gfs_press[::-1] gfs_press = gfs_press[::-1]
uv_wind = get_vert_profile_s(xr_dataset, ['u-wind', 'v-wind'], amvs[:, amv_lon_idx], amvs[:, amv_lat_idx], method='nearest') uv_wind = get_vert_profile_s(xr_dataset, ['u-wind', 'v-wind'], amvs[:, amv_lon_idx], amvs[:, amv_lat_idx], method=method)
uv_wind = uv_wind.data uv_wind = uv_wind.data
wspd, wdir = spd_dir_from_uv(uv_wind[0,:,:], uv_wind[1,:,:]) wspd, wdir = spd_dir_from_uv(uv_wind[0,:,:], uv_wind[1,:,:])
wspd = wspd.magnitude wspd = wspd.magnitude
......
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