Help with sen2cor and SNAP

Hello Kraftek,

I was able to follow the steps you provide, but when I run it, I get the following message.

Anybody knows how to solve this? Thanks

@Mehboobalam: This indicates limited writing authorization. You need to open your command line with administrator rights as stated by kraftek.

@Tony Can you please post a screenshot of the parameters of sen2cor? You find them under Tools > Manage external tools > sen2cor > edit

I hope it’s ok that I post the last one from your message

Try to replace the PYTHON_BIN variable (python.exe) with the full path to the executable: C:\Anaconda\python.exe

This helped in many cases when the process was not executed correctly.

Hi,
I still get the same error. and I put the full path. the full path shows when I click on python.exe. But when I run it I get the same error as before

is your installation directory really D:\sen2cor-2.2.1?

I have it two locations. one in D:\ and another one in the downloads folder.

This picture shows the path that I specified during the installation.

how did you install it?
It is actually under C:\Anaconda\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor

Could be that it cannot be found because of this.

What happens when you type L2A_Process in your command line?

This is what I get as result:

that looks fine.
Can you run the tool from the command line?

Just open your command line in the folder where the folder with your S2 data (.safe) is located and type
L2A_Process --resolution 60 nameofthefolder

Hey again,
here is where I have the sentinel data. what folder should I put on that command?

the one which would be one level above. It is created when you extract the data.
But the original path S2A_OPER…safe is needed.

see here, page 40

Thanks Braun. I went through that pdf.
where do should I specify the path in this picture? (C:\Program Files\Anaconda2\Lib\site-packages\sen2cor-2.2.1-py2.7.egg\sen2cor).

Could you possibly, explain what this is doing: It is a screenshot from page 40 of the pdf.

where can I find the L1C Product Directory on my computer?

this is the directory you download and extract to any folder you want. It is just required to not change the name of the folder

L2A_Process runs the correction from outside SNAP. It however requires a resolution and the name of the folder.

For example:

  1. You download the data in C:\Downloads\name.zip
  2. Then you extract the data here. This creates data in one subfolder wth the data (AUX_DATA…) you showed above. Leave the name as it is: C:\Downloads\S2A_OPER_BWI…
  3. You start the correction from the command line in this folder: C:\Downloads\ like this L2A_Process --resolution 60 S2A_OPER_BWI...
    You can recall the total name of the subfolder with the tabulator key so you won’t need to type it in manually.

Am I doing something wrong here? In specifying the L1C Level directory

I am using windows 7