From 27d6db3141abb24df7efba2934963ae592e37ce1 Mon Sep 17 00:00:00 2001 From: DXC Date: Sat, 9 May 2026 09:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DKutser=E6=B3=A2=E6=AE=B5?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E7=B1=BB=E5=9E=8B=EF=BC=9A=5F=5Finit=5F=5F?= =?UTF-8?q?=E4=B8=AD=E7=BB=9F=E4=B8=80=E5=B0=86oxy/lower=5Foxy/upper=5Foxy?= =?UTF-8?q?/NIR=5Fband=E8=BD=AC=E4=B8=BAint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/glint_removal/Kutser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/glint_removal/Kutser.py b/src/core/glint_removal/Kutser.py index 4eb10a9..32c3ca5 100644 --- a/src/core/glint_removal/Kutser.py +++ b/src/core/glint_removal/Kutser.py @@ -26,10 +26,10 @@ class Kutser: """ self.im_aligned = im_aligned self.bbox = self._read_shp_to_bbox(shp_path) if shp_path else None - self.oxy_band = oxy_band - self.lower_oxy = lower_oxy - self.upper_oxy = upper_oxy - self.NIR_band = NIR_band + self.oxy_band = int(float(oxy_band)) + self.lower_oxy = int(float(lower_oxy)) + self.upper_oxy = int(float(upper_oxy)) + self.NIR_band = int(float(NIR_band)) self.n_bands = im_aligned.shape[-1] self.height = im_aligned.shape[0] self.width = im_aligned.shape[1]