Skip to content
Snippets Groups Projects
Commit dee10f3d authored by rink's avatar rink
Browse files

snapshot..

parent 9910832a
No related branches found
No related tags found
No related merge requests found
......@@ -430,13 +430,6 @@ def match_amvs_to_aeolus(aeolus_dict, amv_files_path, amv_source='OPS', band='14
if f_idx != last_f_idx:
last_f_idx = f_idx
ds = Dataset(fname)
# amv_lons = ds[amv_lon_name][:]
# amv_lats = ds[amv_lat_name][:]
# amv_spd = ds[amv_spd_name][:]
# amv_dir = ds[amv_dir_name][:]
# amv_pres = ds[amv_press_name][:]
# cc = ds[amv_files.elem_name][:]
# ll = ds[amv_files.line_name][:]
amv_lons = ds[amv_files.lon_name][:]
amv_lats = ds[amv_files.lat_name][:]
......@@ -469,7 +462,6 @@ def match_amvs_to_aeolus(aeolus_dict, amv_files_path, amv_source='OPS', band='14
param_nd = np.vstack(param_s)
param_nd = param_nd[:, in_box]
match_dict[key] = param_nd
#match_dict[key] = (amv_lons[in_box], amv_lats[in_box], amv_pres[in_box], amv_spd[in_box], amv_dir[in_box], dist)
return match_dict
......@@ -488,7 +480,6 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files):
namvs = 0
nlevs = 0
for key in keys:
# lons, lats, pres, spd, dir, dist = aeolus_to_amv_dct.get(key)
param_nd = aeolus_to_amv_dct.get(key)
num_amvs.append(param_nd.shape[1])
namvs += param_nd.shape[1]
......@@ -558,15 +549,6 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files):
i_b = i_a + namvs
i_d = i_c + nlevs
# lons, lats, pres, spd, dir, dist = aeolus_to_amv_dct.get(key)
# amv_lon[i_a:i_b] = lons[:]
# amv_lat[i_a:i_b] = lats[:]
# amv_spd[i_a:i_b] = spd[:]
# amv_dir[i_a:i_b] = dir[:]
# amv_pres[i_a:i_b] = pres[:]
# amv_dist[i_a:i_b] = dist[:]
# i_a += namvs
param_nd = aeolus_to_amv_dct.get(key)
for pidx, param in enumerate(out_params):
nc4_vars[pidx][i_a:i_b] = param_nd[pidx, :]
......
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