From 5f9ab485d64f23fc07a3e205a25b0b70702c3ae3 Mon Sep 17 00:00:00 2001 From: thekester Date: Thu, 25 Jul 2024 11:17:51 +0200 Subject: [PATCH] Fix issues with numpy integration by replacing np.math.atan2 with np.arctan2 --- coastsat/SDS_preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coastsat/SDS_preprocess.py b/coastsat/SDS_preprocess.py index 16ec17f0..2ec0d961 100644 --- a/coastsat/SDS_preprocess.py +++ b/coastsat/SDS_preprocess.py @@ -939,7 +939,7 @@ def press(event): phi = 0 deltax = pts_world[k+1,0] - pts_world[k,0] deltay = pts_world[k+1,1] - pts_world[k,1] - phi = np.pi/2 - np.math.atan2(deltax, deltay) + phi = np.pi/2 - np.arctan2(deltax, deltay) tf = transform.EuclideanTransform(rotation=phi, translation=pts_world[k,:]) pts_world_interp = np.append(pts_world_interp,tf(pt_coords), axis=0) pts_world_interp = np.delete(pts_world_interp,0,axis=0)