diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index fa861e1d1deb6b288937d5887f2afb14279140ea..607179c0dabf911cff42e547148ad63eacfd9547 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -127,19 +127,16 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
 
         match_dict[nom_time].append((cc, ll, lon, lat, f_idx, data_da, amvs_da, dist_to_amvs))
 
-        lons = amv_lons[in_box]
-        lats = amv_lats[in_box]
-        lons = lons[s_idxs]
-        lats = lats[s_idxs]
+        lons = param_nd[0, :]
+        lats = param_nd[1, :]
         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]
+        print(temp_prof_s.shape)
 
         for k in range(num_amvs):
-            print(param_s[4, k])
-            print(temp_prof_s[k, :])
-            alt = pressure_to_altitude(param_s[4, k], None, gfs_press, temp_prof_s[k, :])
+            alt = pressure_to_altitude(param_nd[4, k], None, gfs_press, temp_prof_s[k, :])
             print(alt)
 
     return match_dict