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

snaphot...

parent cd4fad9f
No related branches found
No related tags found
No related merge requests found
......@@ -133,11 +133,10 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
temp_prof = temp_prof.values
temp_prof_s = temp_prof[0, :, :]
#temp_prof_s = temp_prof_s[:, ::-1]
print(temp_prof_s.shape)
for k in range(num_amvs):
alt = pressure_to_altitude(param_nd[4, k], None, gfs_press, temp_prof_s[k, :])
print(alt)
print(param_nd[4, k], alt)
return match_dict
......@@ -318,7 +317,7 @@ def run_caliop_clavrx_amv_match(output_path, path_to_caliop_clavrx, path_to_amvs
for f in caliop_clavrx_ds.flist:
match_dict = match_calipso_clavrx_to_amvs(caliop_clavrx_ds, f, amv_ds, caliop_clavrx_params, gfs_ds)
if not match_dict:
if match_dict is None or not match_dict:
print('No matches for: ', f)
continue
......
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