diff --git a/modules/amv/caliop_clavrx_amv.py b/modules/amv/caliop_clavrx_amv.py
index 054a9f2746305c04a9147bbfda209550e3a5e578..845fe2ed85f66b9d785482da5cb3ed4c067bba25 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'][:]