From e145aee262dd5ad8448228581dd1cb66c124991f Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 14 Sep 2022 12:04:01 -0500
Subject: [PATCH] snaphot...

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

diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index d83f4c8a..77891edf 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -52,6 +52,8 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
     nom_time = calipso_clavrx_ds.get_datetime(calipso_clavrx_file).timestamp()
     calipso_clavrx_nc4 = Dataset(calipso_clavrx_file)
 
+    print('start processing: ', calipso_clavrx_file)
+
     amv_fname, ftime, f_idx = amv_files.get_file(nom_time)
     if f_idx is None:
         return None
@@ -64,7 +66,6 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
     gfs_xr = xr.open_dataset(gfs_fname)
     gfs_press = gfs_xr['pressure levels']
     gfs_press = gfs_press.values
-    #gfs_press = gfs_press[::-1]
 
     match_dict[nom_time] = []
 
@@ -132,11 +133,10 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
         temp_prof = get_vert_profile_s(gfs_xr, ['temperature'], lons, lats, method='nearest')
         temp_prof = temp_prof.values
         temp_prof_s = temp_prof[0, :, :]
-        #temp_prof_s = temp_prof_s[:, ::-1]
 
         for k in range(num_amvs):
             alt = pressure_to_altitude(param_nd[4, k], None, gfs_press, temp_prof_s[k, :])
-            print(param_nd[4, k], alt)
+            # print(param_nd[4, k], alt)
 
     return match_dict
 
-- 
GitLab