From 711d36a019a8c830033d87bfe5f45de199a0e300 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 5 Sep 2021 22:17:46 -0500
Subject: [PATCH] snapshot...

---
 modules/util/lon_lat_grid.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/util/lon_lat_grid.py b/modules/util/lon_lat_grid.py
index 8973cc5a..f14c779e 100644
--- a/modules/util/lon_lat_grid.py
+++ b/modules/util/lon_lat_grid.py
@@ -89,6 +89,8 @@ class LonLatGrid:
         xy = np.stack([lons, lats], axis=1)
 
         dist, indices = self.kd.query(np.deg2rad(xy))
+        dist = dist[0]
+        indices = indices[0]
         dist *= 6370000  # convert unit radius to meters
 
         valid = (indices < self.map_indexes.size) & (dist < self.closeness_threshold)
-- 
GitLab