From 224c7c439ff2956d8867daab854197239c7cab5b Mon Sep 17 00:00:00 2001 From: giumas Date: Tue, 2 Jul 2024 18:55:46 +0200 Subject: [PATCH] bug fix in retrieving high-uncertainty locations --- hyo2/bag/bag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyo2/bag/bag.py b/hyo2/bag/bag.py index 8d8299d..2d50d0f 100644 --- a/hyo2/bag/bag.py +++ b/hyo2/bag/bag.py @@ -320,11 +320,11 @@ def uncertainty_greater_than(self, th: float) -> list[list[int | float]]: i = ij[0] j = ij[1] e = x_min + j * x_res - n = y_min + i * y_res + n = y_min + (start + i) * y_res lat, lon, _ = ctr.TransformPoint(e, n) u = float(unc[i, j]) xyz.append([float(lat), float(lon), u]) - # logger.info("%s" % (xyz[-1])) + # logger.info("%d,%d: %.7f %.7f %.3f" % ((start + i), j, xyz[-1][0], xyz[-1][1], xyz[-1][2])) return xyz