1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From 39a0c218f8ea5355d394d47094aec6f9e05e76d4 Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Thu, 2 Mar 2023 06:30:51 -0500
Subject: [PATCH] float not numpy float
numpy.float was deprecated in NumPy 1.20, removed in NumPy 1.24.
Just use the Python type float.
---
python/mlat.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/mlat.py b/python/mlat.py
index 1583b1f..597e61f 100755
--- a/python/mlat.py
+++ b/python/mlat.py
@@ -37,7 +37,7 @@ wgs84_geoid = numpy.array([[13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,1
[-61,-60,-61,-55,-49,-44,-38,-31,-25,-16,-6,1,4,5,4,2,6,12,16,16,17,21,20,26,26,22,16,10,-1,-16,-29,-36,-46,-55,-54,-59], #70S
[-53,-54,-55,-52,-48,-42,-38,-38,-29,-26,-26,-24,-23,-21,-19,-16,-12,-8,-4,-1,1,4,4,6,5,4,2,-6,-15,-24,-33,-40,-48,-50,-53,-52], #80S
[-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30]], #90S
- dtype=numpy.float)
+ dtype=float)
#ok this calculates the geoid offset from the reference ellipsoid
#combined with LLH->ECEF this gets you XYZ for a ground-referenced point
--
2.39.2
|