Sen2Cor does not produce files

Hello all.

I am using Sen2Cor (v2.8.0) in command line and it gave me a strange error message with some files from 2016 (working on tiles T34UEG, T34UFG, T34UFF, T35ULB, T35UMB).
It processed well images from April till July, September. However, there is a problem with most images from August and some from September.
However, for example images from 2016-08-25 are processed, while images from 2016-08-28 are not.

Here is an error message I get:

> C:\Users\dfrgt\Documents\0_bandom_s2c>(L2A_Process --resolution 20 S2A_MSIL1C_20161001T092022_N0204_R093_T35UMB_20161001T092024.SAFE )
> Sentinel-2 Level 2A Processor (Sen2Cor). Version: 2.8.0, created: 2019.02.20, supporting Level-1C product version 14.2 - 14.5 started ...
> Old product version 14.2 detected, - will be updated to 14.5
> Processing baseline will also be updated
> Operation mode: TOOLBOX
> Processing baseline: 02.09
> Progress[%]:  0.00 : Generating datastrip metadata
> L1C datastrip found, L2A datastrip successfully generated
> Selected resolution: 20 m
> [Error 183] Cannot create a file when that file already exists
> Traceback (most recent call last):
>   File "C:\Sen2Cor-02.08.00-win64\\Lib\site-packages\sen2cor\L2A_Process.py", line 495, in main
>     if tile.process() == True:
>   File "C:\Sen2Cor-02.08.00-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py", line 128, in process
>     if not self.process_resolution(20):
>   File "C:\Sen2Cor-02.08.00-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py", line 139, in process_resolution
>     self.tables = L2A_Tables(self.config)
>   File "C:\Sen2Cor-02.08.00-win64\Lib\site-packages\sen2cor\L2A_Tables.py", line 174, in __init__
>     os.path.join(self._L2A_QualityDataDir, fnOut))
> WindowsError: [Error 183] Cannot create a file when that file already exists
> Progress[%]: 100.00 : Application terminated with at least one error.

Anyone know the reason? How can I find out which files can be produced with Sen2Cor and which not?

1 Like

can you go sure that no output product exists? It looks like the script cannot overwrite existing files.

1 Like

Well, yes. I tried copying files to a new folder, so certainly there are no folders of Level 2 data.