From 796288680326fc58b7b7a6009f90dd7786415c76 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 14 Sep 2022 11:48:35 -0500
Subject: [PATCH] snaphot...

---
 modules/amv/caliop_clavrx_amv.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index 130fbcb9..d83f4c8a 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -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
 
-- 
GitLab