Sen2three: error during 10 m resolution data process

Hi everyone,
I’m trying to process Sentinel 2 data using Sen2three tools. I processed 60 m and 20m resolution data successfully, but at 10m resolution I get an error, as in the screenshot below.

Did anyone have the same problem or manage to solve it? I will be grateful for any tips.

Regards,
Anna

Hello. I received this error as well. Not sure what the problem is. I was going to check my configuration file to see if I entered something wrong.

Hello
I still receive this error. I tried using the original L3_GIPP.xml file with no config changes.
I’m on Windows 10 pro 64bit. It would be nice to get some help with this. Seems like the synthetic image is just out of reach!

Sentinel-2 Level 3 Processor (Sen2Three), 1.1.0, created: 2017.07.01 started with 10m resolution …
Procedure L3_Tables: start import, elapsed time[s]: 1.234
Progress[%]: 99.71 : Procedure L3_Tables: Level L3 band B02 imported, elapsed time[s]: 36.078
Progress[%]: 100.00 : Procedure L3_Tables: Level L3 band B03 imported, elapsed time[s]: 34.938
Progress[%]: 100.00 : Procedure L3_Tables: Level L3 band B04 imported, elapsed time[s]: 34.609
Progress[%]: 100.00 : Procedure L3_Tables: Level L3 band B08 imported, elapsed time[s]: 39.610
Progress[%]: 100.00 : Procedure L3_Tables: start import, elapsed time[s]: 0.125
Progress[%]: 99.68 : Procedure L3_Tables: Level L2A band B02 imported, elapsed time[s]: 14.797
Progress[%]: 100.00 : Procedure L3_Tables: Level L2A band B03 imported, elapsed time[s]: 15.062
Progress[%]: 100.00 : Procedure L3_Tables: Level L2A band B04 imported, elapsed time[s]: 15.469
Progress[%]: 100.00 : Procedure L3_Tables: Level L2A band B08 imported, elapsed time[s]: 17.734
Progress[%]: 100.00 : Procedure L3_Process: processing with resolution 10 m, elapsed time[s]: 0.125
Progress[%]: 99.68 : Procedure L3_Process: start of Pre Processing, elapsed time[s]: 0.000
Progress[%]: 99.31 : Procedure L3_Process: start of Spatio Temporal Processing, elapsed time[s]: 0.016
Progress[%]: 99.64 : Procedure L3_Synthesis: pre processing, elapsed time[s]: 0.000
Progress[%]: 99.27 : Procedure L3_Process: nr processed tiles: 2, elapsed time[s]: 0.000
Progress[%]: 98.90 : Traceback (most recent call last):
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three/L3_Process.py”, line 278, in
sys.exit(main() or 0)
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three/L3_Process.py”, line 265, in main
processor = doTheLoop(config)
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three/L3_Process.py”, line 202, in doTheLoop
proc, result = processor.process(tables)
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three/L3_Process.py”, line 102, in process
if(self.l3Synthesis.process(self._tables) == False):
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 642, in process
self.preProcessing()
File “C:\Users\colin\Anaconda2\Lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 588, in preProcessing
self.setPixelMasks()
File “C:\Users\colin\Anaconda2\Lib\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
Process exited with value 1
Finished tool execution in 220 seconds

Hello
For 10m resolution, all four rules RECENT, TEMPORAL, RADIOMETRIC and, AVERAGE failed entirely when I used my own selected test imagery from 2016 and 2017 downloaded for the USGS Earth Explorer site.

What I thought as interesting is that the same 2016 tiles from the USGS site, I also downloaded from the ESA Copernicus site.
These tiles, despite apparently being the same, processed successfully for TEMP_HOMOGENEITY and AVERAGE but were unsuccessful for RECENT and RADIOMETRIC_QUALITY.

A different set of tiles from ESA Copernicus from 2017 gave the sam errors as the 2016 tiles.

Error received for 2016 and 2017 imagery acquired from Copernicus, yet still successful for TEMP_HOMOGENEITY and AVERAGE:
Progress[%]: 87.07 : PID-6568, L2A_Tables: stop export, elapsed time[s]: 0.146, total: 0:24:41.424000
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Progress[%]: 100.00 : Application terminated successfully.
Operation mode PDGS is not supported for Product version 14.2.
Operation mode will be reset to TOOLBOX.

Error received for 2016 and 2017 imagery acquired from Copernicus and UNsuccessful for RADIOMETRIC_QUALITY and RECENT:
Progress[%]: 31.85 : PID-2844, L2A_Tables: stop export, elapsed time[s]: 0.328, total: 0:38:28.549000
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Progress[%]: 100.00 : Application terminated successfully.

Progress[%]: 50.99 : Traceback (most recent call last):
File “C:\Users\colin\Anaconda2\Scripts\L3_Process-script.py”, line 11, in
load_entry_point(‘sen2three==1.1.0’, ‘console_scripts’, ‘L3_Process’)()
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 265, in main
processor = doTheLoop(config)
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 202, in doTheLoop
proc, result = processor.process(tables)
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 102, in process
if(self.l3Synthesis.process(self._tables) == False):
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 642, in process
self.preProcessing()
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 588, in preProcessing
self.setPixelMasks()
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 199, in setPixelMasks
if self.isMoreRecent():
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 267, in isMoreRecent
prdMinTime = time.mktime(datetime.strptime(prdMinTimeS,’%Y%m%dT%H%M%S’).timetuple())
File “C:\Users\colin\Anaconda2\lib_strptime.py”, line 332, in _strptime
(data_string, format))
ValueError: time data ‘160620T173345.S’ does not match format ‘%Y%m%dT%H%M%S’

Error recieved for 2016 and 2017 imagery downloaded from the USGS Earth Explorer site:
Progress[%]: 79.63 : Traceback (most recent call last):
File “C:\Users\colin\Anaconda2\Scripts\L3_Process-script.py”, line 11, in
load_entry_point(‘sen2three==1.1.0’, ‘console_scripts’, ‘L3_Process’)()
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 265, in main
processor = doTheLoop(config)
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 202, in doTheLoop
proc, result = processor.process(tables)
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Process.py”, line 102, in process
if(self.l3Synthesis.process(self._tables) == False):
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 642, in process
self.preProcessing()
File “C:\Users\colin\Anaconda2\lib\site-packages\sen2three-1.1.0-py2.7.egg\sen2three\L3_Synthesis.py”, line 588, in preProcessing
self.setPixelMasks()
File “C:\Users\colin\Anaconda2\lib\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

The 2016 tiles I used from both USGS and Copernicus sites are:
S2A_MSIL1C_20160610T174002_N0202_R055_T14UMA_20160610T174002.SAFE
S2A_MSIL1C_20160610T174002_N0202_R055_T14UNA_20160610T174002.SAFE
S2A_MSIL1C_20160620T172902_N0204_R055_T14UNA_20160620T173345.SAFE
S2A_MSIL1C_20160623T175002_N0204_R098_T14UNA_20160623T174956.SAFE
The 2017 tiles used from Copernicus site:
S2A_MSIL1C_20170705T172901_N0205_R055_T14UNA_20170705T173502.SAFE
S2A_MSIL1C_20170718T173901_N0205_R098_T14UNA_20170718T174646.SAFE
S2A_MSIL1C_20170725T172901_N0205_R055_T14UNA_20170725T173410.SAFE
S2B_MSIL1C_20170713T173909_N0205_R098_T14UNA_20170713T174714.SAFE
S2B_MSIL1C_20170720T172859_N0205_R055_T14UNA_20170720T173528.SAFE