From fdcc1d56f4a54a9239bb2863f950730382566368 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 29 Jul 2022 10:06:55 -0500
Subject: [PATCH] fix bug

---
 modules/amv/caliop_clavrx_amv.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index 054a9f27..845fe2ed 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -112,7 +112,7 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
     lon_s = calipso_clavrx_nc4['longitude'][:]
 
     if calipso_clavrx_nc4.variables.get('x') is None:
-        xs, yx = nav.earth_to_lc_s(amv_lons, amv_lats)
+        xs, ys = nav.earth_to_lc_s(lon_s, lat_s)
     else:
         xs = calipso_clavrx_nc4['x'][:]
         ys = calipso_clavrx_nc4['y'][:]
-- 
GitLab