From 678e6bba4e04eded0a1e7d3615df4a5694405573 Mon Sep 17 00:00:00 2001 From: fukun364202818 <138986373+fukun364202818@users.noreply.github.com> Date: Fri, 14 Feb 2025 09:30:22 +0800 Subject: [PATCH] Update tropo_pyaps3.py In the get_snwe function within tropo_pyaps3.py, the original return (S, N, W, E) was returning S, N, W, and E as NumPy's np.int64 type, while the expected type was standard Python's int. Therefore, I modified the return statement to return (int(S), int(N), int(W), int(E)), which successfully fixed the problem. --- src/mintpy/tropo_pyaps3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mintpy/tropo_pyaps3.py b/src/mintpy/tropo_pyaps3.py index 43256b851..dca67c42f 100644 --- a/src/mintpy/tropo_pyaps3.py +++ b/src/mintpy/tropo_pyaps3.py @@ -318,8 +318,8 @@ def floor2multiple(x, step=10): W = floor2multiple(W, step=step) N = ceil2multiple(N, step=step) E = ceil2multiple(E, step=step) - - return (S, N, W, E) + # modified by fukun 2025.2.14, return (S, N, W, E)->return (int(S), int(N), int(W), int(E)) + return (int(S), int(N), int(W), int(E)) def get_bounding_box(meta, geom_file=None):