Trying to install the sen2cor standalone version.
Tried to follow the instructions step by step.
C:\Windows\system32>C:\Users\User\AppData\Local\Sen2Cor-02.05.05-win64\L2A_Process.bat --help
usage: L2A_Process.py [-h] [–resolution {10,20,60}] [–sc_only] [–cr_only]
[–refresh] [–GIP_L2A GIP_L2A]
[–GIP_L2A_SC GIP_L2A_SC] [–GIP_L2A_AC GIP_L2A_AC]
[–GIP_L2A_PB GIP_L2A_PB]
directory
Sentinel-2 Level 2A Processor (Sen2Cor). Version: 2.5.5, created: 2018.03.19,
supporting Level-1C product version <= 14.5.
positional arguments:
directory Directory where the Level-1C input files are located
optional arguments:
-h, --help show this help message and exit
–resolution {10,20,60}
Target resolution, can be 10, 20 or 60m. If omitted,
all resolutions will be processed
–sc_only Performs only the scene classification at 60 or 20m
resolution
–cr_only Performs only the creation of the L2A product tree, no
processing
–refresh Performs a refresh of the persistent configuration
before start
–GIP_L2A GIP_L2A Select the user GIPP
–GIP_L2A_SC GIP_L2A_SC
Select the scene classification GIPP
–GIP_L2A_AC GIP_L2A_AC
Select the atmospheric correction GIPP
–GIP_L2A_PB GIP_L2A_PB
Select the processing baseline GIPP
Product version cannot be read.
14.5 will be used by default, but warnings during validation might occur.
Traceback (most recent call last):
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 354, in
sys.exit(main())
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 175, in main
if not config.setProductVersion():
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4747, in setProductVersion
self.processingBaseline = processingBaseline
UnboundLocalError: local variable ‘processingBaseline’ referenced before assignment
Finished tool execution in 43 seconds
Product version cannot be read.
14.5 will be used by default, but warnings during validation might occur.
Traceback (most recent call last):
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 354, in
sys.exit(main())
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 175, in main
if not config.setProductVersion():
File “C:\Users\User.snap\auxdata\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4747, in setProductVersion
self.processingBaseline = processingBaseline
UnboundLocalError: local variable ‘processingBaseline’ referenced before assignment
Finished tool execution in 4 seconds
What could I be doing wrong? I am getting the “it seems there was an error on execution or the defined tool output error pattern was not found. Consult SNAP lof file” error.