Sen2Cor cannot run

I am a new starter in snap, I am trying to get level-2A products from Sentinel-2A level-1C products.
I’m sure that I successfully installed the sen2cor, but when I open the L1C products and run Sen2Cor, I encounter the problems as follow:

Process exited with value 2
Finished tool execution in 0 seconds

waiting for help!!!

Thanks very much!

1 Like

Hi,

are you able to generate the L2 products from the command line? Are you using the last versions (SNAP 5 and Sen2Cor 2.3)?
If it works fine in command line, the problem is probably that the system variables are not well configured. Please, could you share your configuration to have a look? You can find them in SNAP->Tools->Manage External Tools->Sen2Cor->Edit…->System Variables

yeh, I successfully got L2A products.

It’s the configuration problem, I correct this and it’s running.

Sen2Cor_home C:\Users\XXX\documents\sen2cor
Sen2Cor_bin C:\Program Files\Anaconda2\Lib\site-packages\sen2cor-2.3.0-py2.7.egg\sen2cor
Python_bin python.exe

I wish it’s useful for u