Sen2cor 2.5.5 manifest error


#1

I had the problem below when I run Sen2cor 2.5.5 on S2A_OPER_PRD_MSIL1C_PDMC_20170121T191416_R108_V20150829T103026_20150829T103026.SAFE:

Traceback (most recent call last):
File “C:\Sen2Cor-win64\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 136, in run
if not self.process_10():
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 179, in process_10
if not self.process_20():
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 158, in process_20
return self.process()
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 229, in process
if self.postprocess() == False:
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 324, in postprocess
mn.generate(self.config._L2A_UP_DIR, self.config.L2A_MANIFEST_SAFE)
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_Manifest.py”, line 353, in generate
self.addDataObject(dataObjectSection, filepath, ids[filepath], l2productpath)
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_Manifest.py”, line 225, in addDataObject
byteStream.attrib[“mimeType”] = self.getMimeType(href)
File “C:\Sen2Cor-win64\Lib\site-packages\sen2cor\L2A_Manifest.py”, line 201, in getMimeType
return dicoMimeType[href.split(".")[-1]]
KeyError: ‘04\QI_DATA\S2A_OPER_MSI_L1C_TL_EPA__20161007T141124_A000963_T32UND_FORMAT_CORRECTNESS_report’

I looked into the ‘L2A_Manifest.py’ script and realized the error is coming from the ‘getMimeType’ function because the dictionary there does not contain that key. The key is supposed to be one of ‘xml’, ‘gml’, ‘html’, ‘xsl’, or ‘jp2’.

Has anyone encountered this issue and how was it solved?

Thanks a lot in advance!