Help with sen2cor and SNAP

Hello!
I have a problem while i try to install Sen2cor 2.2.1 in Snap 3.
I followed the steps of the release notes, so the L2A Process --help looks like that

which means the installation is ok.

After that in Snap i did all the instractions and i read the forum . The problem i had, i fixed it as i put the variables from the system so the PYTHON BIN which couldn’t find is ok.

Now it should work as i have uninstall and install from the begining and all looks okey, but when i load the image of S2 nothing happens.
Please i am very confused !
My pc’s window is 10
thanks in advance
A.

what error message do you get?

I don’t get error , when i load the image the program tries to read it , and after that nothing happens. The image is not loaded.
Is there any way to see the error while the image is loaded?

thanx again!

Hi,

you are using an old version of SNAP. Please, try to download and install the last version and tell us if it works properly.

okey, i will try
thnx

Please also install the latest version of SenCor 2.3.0:
http://step.esa.int/main/third-party-plugins-2/sen2cor/

Regards,
Jérôme

Hello Jerome,
thank you for your reply,

I installed the latest versions of sen2cor and snap. The image is opened but cannot be atmospherically corrected from sen2cor as the page is blank as you see below

also i thought that this would help to figure out what happens

the SEN2COR_HOME is strange. It should be something like

C:\Users\Halid\Documents\sen2cor

hello i install sen2cor in C: not in users

I don’t know if this is a good idea.
Can you run L2A_process from the command line?

It is described in the manual, chapter 3.2.1

althought i change the Sen2cor_home from the system variables
c: sen2cor-2.3.0 , i run again the tool and there was some execution but failed because of the below error

Also i would like to refer that i am working to another pc that there is no internet connection at the moment.

Hello Abraum
well i install the sen2cor in c: not in users so i changed the directory
of SEN2COR_HOME in C:sen2cor , so the result as you can see bellow. I have
to mention that the pc i am working at the moment has no internet connection

Thanks again in advance!

if the path in your SEN2COR_HOME variable matches the actual location of the files it should be ok.

as asked above:
Can you run L2A_process from the command line?

It is described in the manual, chapter 3.2.1

yes, i run, sorry i didn;t see that you mentioned that . As you below the L2A Process

did you also try to apply it to data?
Simply add --resolution 60 and the name of the folder with the S2 data and see what happens.

Hello ABraun,
Apology for entering blankly into conversation. I am completely new for SNAP and trying to install sen2cor but getting errors in command line while installing, Which version of sen2cor is advisable to install with SNAP5.0?
Though I tried installing whatever I can do but In my case of sen2cor installation i am getting this error message when I run the tool

Traceback (most recent call last):
File “C:\Users\hp\Anaconda3\Lib\site-packages\sen2cor-2.0.6-py3.5.egg\sen2cor/L2A_Process.py”, line 9, in
from time import time
File “C:\Users\hp\Anaconda3\Lib\site-packages\sen2cor-2.0.6-py3.5.egg\sen2cor\L2A_Config.py”, line 2701
except Exception, inst:
^
SyntaxError: invalid syntax
Process exited with value 1
Finished tool execution in 0 seconds

sorry if its too absurd question

Thanks,
Amit

Dear Amit,
could it be that you installed Python version 3? (Anaconda3 in your path is suspicious)
I would stick to version 2.7.12 (or another below 3) because there are some mismatches betewen the syntax of Python 2 and Python 3.
So uninstalling the whole thing would be my first try. But I can’t guarantee that this fixes your problem.
Don’t forget to properly remove sen2cor bevore uninstalling Anaconda by pip uninstall sen2cor in your command line.

Many Thanks, will do it, hopefully it will be fine.

best,
Amit

well the image of s2 is in another hard disk , so my question is should the folder of s2 data be in the same folder of sen2cor? for example in my case in C?

if the variables are set correctly, that shouln’t make any difference, I suppose.