Sen2cor fails to execute

I have recently downloaded and successfully set up the sen2cor plugin.
However upon executing the plugin it fails to get passed 0%.

In SNAP, the sen2cor plugin is opened from Optical> thermal land processing> sen2corThe xml file is selected from the drop down menu, then the resolution, and then the ‘run’ button is selected, but nothing happens. Has anyone else encountered this issue?

Thank you !

(Please see image below!)

Hi,
try to use Sen2Cor via command line. Sometimes in SNAP it doesn’t work

Best wishes

we need more information than that :slight_smile:

1 Like

Hi Kiryl,

How do I use it through command line?

you have to write in command line this:
L2A_Process <path to your folder with metadate file for Sentinel 2 Images> and optionaly --resolution 60 or 20 or 10 or nothing eg.

L2A_Process C:\S2\S2A_OPER_PRD_MSIL1C_PDMC_20161202T202411_R122_V20161202T100402_20161202T100402.SAFE (sen2cor makes correction for every resolutions)

L2A_Process C:\S2\S2A_OPER_PRD_MSIL1C_PDMC_20161202T202411_R122_V20161202T100402_20161202T100402.SAFE --resolutions 20 (sen2cor makes correction for 20m and 10m resolutions)

Very important is .SAFE in mainly folder name. WIthout this Sen2Cor doesn’t work

Regards

Thank you so much for your help!

I have tried this, and the error “unrecognized arguments” arises, please see screen shot below

do you know why this would be?

Hi,
You shouldn’t write on end resolution 10 (i think) and your path is tooooooooo long. Paste Sentinel Image eg in C:\S2\S2A_OPER_PRD_MSIL1C_PDMC_20161202T202411_R122_V20161202T100402_20161202T100402.SAFE or somthing shorter than your first version

Regards

Hi Kiryl,

sorry to bother you again, but do you know how to resolve this issue?

Hi,
your mainly folder name has wrong name. It looks like your folder was after correction. Correctly name is S2A_OPER_PRD_MSIL1C_ PDMC_20161202T202411_R122_V20161202T100402_20161202T100402.SAFE

Regards