From 3015b32ab68a439e518cfdaaeab2b2836dc46d44 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 1 Nov 2023 11:36:03 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/util.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/icing/util.py b/modules/icing/util.py
index fa8c6474..e2346379 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -92,8 +92,12 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
             ll_pt_a = data_extent[0]
             ll_pt_b = data_extent[1]
             if domain == 'CONUS':
-                y_a, x_a = geos_nav.earth_to_lc(ll_pt_a['lon'], ll_pt_a['lat'])
-                y_b, x_b = geos_nav.earth_to_lc(ll_pt_b['lon'], ll_pt_b['lat'])
+                y_a, x_a = geos_nav.earth_to_lc(ll_pt_a.lon, ll_pt_a.lat)
+                y_b, x_b = geos_nav.earth_to_lc(ll_pt_b.lon, ll_pt_b.lat)
+                i_0 = x_a if x_a < x_b else x_b
+                j_0 = y_a if y_a < y_b else y_b
+                xlen = x_b - x_a if x_a < x_b else x_a - x_b
+                ylen = y_b - y_a if y_a < y_b else y_a - y_b
 
     if satellite == 'H08':
         xlen = taiwan_lenx
-- 
GitLab