Sen2Three - IndexError: too many indices

Hi,

did anyone come across this IndexError:

/python2.7/site-packages/sen2three-1.1.python2.7/site-packages/sen2three-1.1.0-py2.7.egg/sen2three/L3_Synthesis.py", line 148, in setPixelMask
BPM03[(scl03 == medProbaClouds) & (scl2A == highProbaClouds)] = 0
IndexError: too many indices for array

Thanks,
Valentin

Hi,

I’ve just encountered the same error:

\Miniconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py", line 148, in setPixelMasks
BPM03[(scl03 == medProbaClouds) & (scl2A == highProbaClouds)] = 0
IndexError: too many indices for array

Did you find a solution yet?
Thanks,
Janneke

Hi,

apologies for the late reply.

I managed to sort it by reinstalling sen2three and by miracle it started working. Not sure what really went wrong though.

Sorry.
Best wishes,
Valentin

I’ve encountered a similar error, using the Sample data…

File “/opt/conda/lib/python2.7/site-packages/sen2three-1.1.0-py2.7.egg/sen2three/L3_Synthesis.py”, line 155, in setPixelMasks
scl2A[(scl03 == medProbaClouds) & (scl2A == highProbaClouds)] = medProbaClouds
TypeError: ‘bool’ object does not support item assignment.