I started a L2A Process --resolution 60 and it seemed to work, then I tried to pass a resolution of 20 m but a message error appears :
Sentinel-2 Level 2A Prototype Processor (Sen2Cor), 2.2.1, created: 2016.04.29 started …
selected resolution is 10 m.
C:\Users\21500875\Anaconda\lib\site-packages\glymur\lib\config.py:102: UserWarning: The library specified by configuration file at C:\Program Files (x86)\Monteverdi2-0.6\bin\openjp2.dll could not be loaded.
warnings.warn(msg.format(path), UserWarning)
C:\Users\21500875\Anaconda\lib\site-packages\glymur\lib\config.py:151: UserWarning: Neither the openjp2 nor the openjpeg library could be loaded.
warnings.warn(msg)
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\Users\21500875\Anaconda\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Users\21500875\Anaconda\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 142, in run
if self.process_20() == False:
File “C:\Users\21500875\Anaconda\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 162, in process_20
return self.process()
File “C:\Users\21500875\Anaconda\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 190, in process
self.config.readTileMetadata()
File “C:\Users\21500875\Anaconda\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_Config.py”, line 3663, in readTileMetadata
size = imgSizeList.Size
AttributeError: ‘bool’ object has no attribute ‘Size’
I am having a similar problem, working with 60m resolution. I have recently upgraded Anaconda and Sen2Cor. I receive the message:
Sentinel-2 Level 2A Prototype Processor (Sen2Cor), 2.2.1, created:2016.04.29 started …
selected resolution is 60 m.
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File"C:\Users\Daniel\Anaconda2\lib\multiprocessing\process.py", line 258,in _bootstrap
self.run()
File"C:\Users\Daniel\Anaconda2\Lib\site-packages\sen2cor-2.2.1-
py2.7.egg\sen2cor\L2A_ProcessTile.py",line 129, in run
if self.process_60() ==False:
File"C:\Users\Daniel\Anaconda2\Lib\site-packages\sen2cor-2.2.1-
py2.7.egg\sen2cor\L2A_ProcessTile.py",line 154, in process_60
return self.process()
File"C:\Users\Daniel\Anaconda2\Lib\site-packages\sen2cor-2.2.1-
py2.7.egg\sen2cor\L2A_ProcessTile.py",line 190, in process
self.config.readTileMetadata()
File “C:\Users\Daniel\Anaconda2\Lib\site-packages\sen2cor-2.2.1-
py2.7.egg\sen2cor\L2A_Config.py”,line 3663, in readTileMetadata
size = imgSizeList.Size
AttributeError: ‘bool’ object has no attribute ‘Size’
I also get a Snap Warning in another window “It seems there was an error on execution or the defined tool output error pattern was found. Please consult the SNAP log file”
Hello, I got similar issue that I fixed by updating conda & anaconda
Uninstall current version of sen2cor (pip uninstall sen2cor) and remove sen2cor folder (where L2A_Bashrc and L2A_Process.bash are located).
Then update conda and anaconda conda update conda conda update anaconda
Finally install back sen2cor
Sentinel-2 Level 2A Prototype Processor (Sen2Cor), 2.2.1, created: 2016.04.29 started …
selected resolution is 60 m.
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\Anaconda2\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 129, in run
if self.process_60() == False:
File “C:\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 154, in process_60
return self.process()
File “C:\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 190, in process
self.config.readTileMetadata()
File “C:\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor\L2A_Config.py”, line 3663, in readTileMetadata
size = imgSizeList.Size
AttributeError: ‘bool’ object has no attribute ‘Size’
I had the same error and solved it by deleting a previously generated L2A-product in the target directory. Normally this is no problem but in that case previously I aborted the same computation. Therefore I assume an incomplete product was contained in the target folder which failed a size check.