From 1f21ce98fce9f9f67be297fb8cd72552fa832edf Mon Sep 17 00:00:00 2001 From: Sebastien Courroux Date: Wed, 27 Mar 2024 11:19:55 +0100 Subject: [PATCH] Fix capture --- micasense/capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micasense/capture.py b/micasense/capture.py index ccf20b33..e5eeea94 100644 --- a/micasense/capture.py +++ b/micasense/capture.py @@ -604,7 +604,7 @@ def save_capture_as_stack(self, outfilename, sort_by_wavelength=False, photometr for outband_count, inband in enumerate(eo_list): outband = outRaster.GetRasterBand(outband_count + 1) - outdata = self.__aligned_capture[:, :, inband] + outdata = aligned_cap[:, :, inband] outdata[outdata < 0] = 0 outdata[outdata > 2] = 2 # limit reflectance data to 200% to allow some specular reflections outdata = outdata * 32767 # scale reflectance images so 100% = 32768