From b6a385f0861ab013bd7af85993a42a2853f79671 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 28 Jul 2022 20:52:57 -0500
Subject: [PATCH] minor

---
 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 be450bf0..46600e07 100644
--- a/modules/amv/caliop_clavrx_amv.py
+++ b/modules/amv/caliop_clavrx_amv.py
@@ -109,7 +109,7 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
         calipso_clavrx_data.append(calipso_clavrx_nc4[pname][:])
     lat_s = calipso_clavrx_nc4['latitude'][:]
     lon_s = calipso_clavrx_nc4['longitude'][:]
-    if calipso_clavrx_ds.variables.get('x') is None:
+    if calipso_clavrx_nc4.variables.get('x') is None:
         xs, yx = nav.earth_to_lc_s(amv_lons, amv_lats)
     else:
         xs = calipso_clavrx_nc4['x'][:]
-- 
GitLab