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

add new match file creator

parent 0bd639e9
Branches
No related tags found
No related merge requests found
...@@ -1469,8 +1469,8 @@ def match_aeolus_to_clavrx(aeolus_dict, clvrx_files): ...@@ -1469,8 +1469,8 @@ def match_aeolus_to_clavrx(aeolus_dict, clvrx_files):
def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_press_acha', 'cld_temp_acha']): def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_press_acha', 'cld_temp_acha']):
grd_x_len = 7 grd_x_len = 9
grd_y_len = 7 grd_y_len = 9
num_aparams = 7 num_aparams = 7
num_aprofs = len(match_dct) num_aprofs = len(match_dct)
max_num_alevels = 0 max_num_alevels = 0
...@@ -1554,10 +1554,12 @@ def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_pre ...@@ -1554,10 +1554,12 @@ def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_pre
for pidx, param in enumerate(clvrx_params): for pidx, param in enumerate(clvrx_params):
nc4_vars[pidx][idx, :, :] = param_nd[pidx, :, :] nc4_vars[pidx][idx, :, :] = param_nd[pidx, :, :]
prf_spd[idx,:] = prof[:,6] nlevs = prof.shape[0]
prf_azm[idx,:] = prof[:,5] for k in range(nlevs):
prf_hht[idx,:] = prof[:,3] prf_spd[idx,k] = prof[k,6]
prf_hhb[idx,:] = prof[:,4] prf_azm[idx,k] = prof[k,5]
prf_hht[idx,k] = prof[k,3]
prf_hhb[idx,k] = prof[k,4]
prf_lon[:] = alons prf_lon[:] = alons
prf_lat[:] = alats prf_lat[:] = alats
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment