diff = npmodnpsubtractHSIpixels1i j 0 HSIpixels2i j 0 360 ~~~~~~~~~~^^^^^^^^^IndexError too many indices for array array is 1-dimensional but 3 were indexed
The error message indicates that there is an issue with indexing the arrays HSIpixels1 and HSIpixels2. The arrays are being indexed with three indices ([i, j, 0]), but the error suggests that the arrays are 1-dimensional.
To fix this error, you need to ensure that the arrays HSIpixels1 and HSIpixels2 have the appropriate dimensions for indexing. Make sure that these arrays are 2-dimensional or 3-dimensional, depending on your requirements. Check the shape of these arrays using HSIpixels1.shape and HSIpixels2.shape to ensure they have the expected dimensions
原文地址: https://www.cveoy.top/t/topic/hQEs 著作权归作者所有。请勿转载和采集!