(Resolved)Problem with Sen2Cor Windows 10

Sentinel-2 Level 2A Processor (Sen2Cor), 2.3.1, created: 2017.02.03 started …
selected resolution is 10 m.
Progress[%]: 0.19 : PID-25488, 20 m resolution must be processed first, elapsed time[s]: 4.631
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\ProgramData\Anaconda2\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 135, in run
if self.process_10() == False:
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 178, in process_10
if not self.process_20():
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 156, in process_20
self.tables = L2A_Tables(self.config)
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_Tables.py”, line 324, in init
if not ‘USER’ in tiOld.text:
AttributeError: ‘bool’ object has no attribute ‘text’

it seems that you renamed the folder of your image data. Try to leave it as it is (S2A…) and run it again from the command line.

Good morning,

The folder has been renamed by Sen2cor during the first process. I send you the first log of the first process.
Sentinel-2 Level 2A Processor (Sen2Cor), 2.3.1, created: 2017.02.03 started …
selected resolution is 10 m.
Progress[]: 0.19 : PID-42596, 20 m resolution must be processed first, elapsed time[s]: 4.655 Progress[]: 0.20 : PID-42596, L2A_ProcessTile: processing with resolution 20 m, elapsed time[s]: 0.208
Progress[]: 0.20 : PID-42596, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.001 Progress[]: 0.20 : PID-42596, L2A_Tables: start import, elapsed time[s]: 0.048
Progress[]: 0.37 : PID-42596, L2A_Tables: band B01 imported, elapsed time[s]: 4.066 Progress[]: 1.19 : PID-42596, L2A_Tables: band B02 imported, elapsed time[s]: 19.551
Progress[]: 1.99 : PID-42596, L2A_Tables: band B03 imported, elapsed time[s]: 19.120 Progress[]: 2.79 : PID-42596, L2A_Tables: band B04 imported, elapsed time[s]: 19.373
Progress[]: 3.04 : PID-42596, L2A_Tables: band B05 imported, elapsed time[s]: 5.873 Progress[]: 3.29 : PID-42596, L2A_Tables: band B06 imported, elapsed time[s]: 5.953
Progress[]: 3.54 : PID-42596, L2A_Tables: band B07 imported, elapsed time[s]: 6.116 Progress[]: 3.80 : PID-42596, L2A_Tables: band B8A imported, elapsed time[s]: 6.184
Progress[]: 3.97 : PID-42596, L2A_Tables: band B09 imported, elapsed time[s]: 4.040 Progress[]: 4.11 : PID-42596, L2A_Tables: band B10 imported, elapsed time[s]: 3.509
Progress[]: 4.35 : PID-42596, L2A_Tables: band B11 imported, elapsed time[s]: 5.674 Progress[]: 4.59 : PID-42596, L2A_Tables: band B12 imported, elapsed time[s]: 5.735
Progress[]: 4.59 : PID-42596, L2A_ProcessTile: start of Scene Classification, elapsed time[s]: 0.005 Progress[]: 4.61 : PID-42596, Pre process , elapsed time[s]: 0.614
Progress[]: 4.64 : PID-42596, L2A_SC init , elapsed time[s]: 0.564 Progress[]: 4.68 : PID-42596, L2A_CSND_1_1 , elapsed time[s]: 0.914
Progress[]: 4.71 : PID-42596, L2A_CSND_1_2 , elapsed time[s]: 0.942 Progress[]: 4.74 : PID-42596, L2A_CSND_2_0 , elapsed time[s]: 0.690
Progress[]: 4.78 : PID-42596, L2A_CSND_2_1 , elapsed time[s]: 0.863 Progress[]: 4.81 : PID-42596, L2A_CSND_2_1_2, elapsed time[s]: 0.690
Progress[]: 4.83 : PID-42596, L2A_CSND_2_2 , elapsed time[s]: 0.450 Progress[]: 4.84 : PID-42596, L2A_CSND_2_3 , elapsed time[s]: 0.419
Progress[%]: 4.88 : PID-42596, L2A_CSND_2_4 , elapsed time[s]: 0.769
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\ProgramData\Anaconda2\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 135, in run
if self.process_10() == False:
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 178, in process_10
if not self.process_20():
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 157, in process_20
return self.process()
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_ProcessTile.py”, line 205, in process
if(sc.process() == False):
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_SceneClass.py”, line 836, in process
self.L2A_CSND_2_5()
File “C:\ProgramData\Anaconda2\Lib\site-packages\sen2cor-2.3.1-py2.7.egg\sen2cor\L2A_SceneClass.py”, line 260, in L2A_CSND_2_5
ring = snow_mask_dil - snow_mask
TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

Best regards
Filippo

never heard of something like this, sorry.
Are you sure that sen2cor renamed the folder? What scene are you using?

I am using S2A level 1C

can you please copy the name of the scene in here so I could test it?

ABSOLUTELY IS: S2A_MSIL1C_20170312T100021_N0204_R122_T33TUL_20170312T100706

Thanks!

worked fine for me:


Something in your data structure or your Anaconda installation must be faulty.

Good afternoon

I have tried to install Anaconda and San2cor again but there are no new results. The installation I am doing is according to the manual, as also the community does. Can you suggest how to install it correctly? Also in Linux is it is easier for you!

Thank you!

I am not using Linux, it works under Windows as well. Can’t think of a reason why it would cause errors except for the folder name.
Try unpacking the zip file again and leave the file structure

I have also had this error

I think I have resolved it by running:

pip uninstall numpy
pip install numpy==1.11.3

similar to the solution of this post.

yes!!! I have resolved , thank you for your help!!!