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