Hello,
I am new to Sen2cor. However, I could install the standalone installer successfully, but I have the problem with integration of sen2cor with SNAP. When I open the sen2cor editor, all parameters field are empty! Can anyone help me how to integrate sen2cor standalone with SNAP, please?
Hi Pym,
there is a youtube tutorial (for Win8 and Win10), which shows how to integrate sen2cor in SNAP:
However in my opinion it is easier to use the standalone version.
Best regards
Sebastian
Hi everybody,
I believe that I found a bug in sen2cor: it cannot handle blanks in the file path.
I put my standalone sen2cor in a folder with blanks and was not able to show the help with “L2A_Process.bat –help”.
I then copied it to a file location without blanks where it worked just fine.
- Sebastian
Hi Sebastian
Thank you very much for your reply. However, I believe the issue is compatibility of Sen2cor 2.4 with SNAP 5. so you cannot integrate sen2cor in SNAP 5. I think it works with SNAP 6.
By the way, I tried to Run sen2cor standalone in CMD itself and ran the atmospheric correction smoothly.
Thank you very much.
regards,
Hello,
Thank you for the tutorial. It works fine.
However, is it possible to process all the files (images) of a folder in one step ?
For example, I have 30 Sentinel-2 images TOA and I want to transform them in BOA using Sen2Cor. I could do it manually file by file, but it’s very inconvenient. I already tried “L2A_Process D:\myfolder\ .SAFE" or
"L2A_Process D:\myfolder\ ..SAFE” but it didnt work . It must be easy but I’m not used to cmd commands.
Can someone tell me how to do a loop or a bach ? Thank you.
Regards,
GeckoTokay
hello, I read this somewhere in this forum and adapted it to use in the command line in Linux : sudo bash -c 'for scene in Level1C -1 /D/data/Level1C/S2_MSIL1C;do echo “Doing scene:$scene”;L2A_Process $scene --resolution=10;done’** . Please note that Level1C is the folder containing level 1C (unzipped) images. The products from Sen2cor are placed in the same working directory. Hope this helps. Also have a look at Batch processing and other similar posts on the forum.
This is a link from ESA, is not THAT helpfull for those not familiarized with programming lenguage though:
But gets you on the right direction
Nevertheless i could not make it through the running errors, hope this will works for you
the processor replied as shown above, I can not understand the second part - where is my path? where to add the whole folder containing L2A bat file?
Thanks for bug report. It is fixed on the git. Next release will not have this issue. you can install/unzip to a directory with or without spaces
PATH which he is referring to is your system path. This is usually seen as “PATH” where Windows OS search for dll’s and executables. google howto update my system path on windows
I solved my problem long ago, thanks anyway. I have not seen such software running mode since 20 years or more, and I thought I would never seen again, but alas… :)))) I it is good that I have degree in archaeology.
Good morning:
I’m trying to install the sen2cor, the standalone version.
I am following the published step by step.
When I get to the instance of calling the file: “L2A_Process.bat -help”. I appear poster:
C: \ Users \ analam \ Documents \ 111 Sentinel atmospheric correction tests \ Sen2Cor-2.4.0-win64 \ Sen2Cor-2.4.0-win64> cd L2A_Process.bat --help
The system can not find the path specified.
I’m not very familiar with the command line so I would need a little more help in detail.
It would be excellent since I want to work with data s2 corrected atmospherically.
Best regards and thanks from now
anabel
Hi anabel,
your command should be “L2A_Process.bat --help”, the “cd” is not needed.
C: \ Users \ analam \ Documents \ 111 Sentinel atmospheric correction tests \ Sen2Cor-2.4.0-win64 \ Sen2Cor-2.4.0-win64> cd L2A_Process.bat --helpThe system can not find the path specified.
do you have a directory with spaces? "111 Sentinel atmospheric correction tests ". In that case, sen2Cor 2.4.0 won’t work.
This was abug in package and is fixed for next release already.
you a path without spaces, change it to “_” for now. and wait for next release of sen2cor 2.5.x.
Dear rashadkm:
Thank you very much for your reply. I will try to do it and I hope it works!
I’ll let you know.
thanks again
Anabel
Hello, thank you for your comment
regards
anabel
I have a problem. I downloaded the standalone installer Sen2Cor-2.4.0-win64. The installation was successful. After calling the command “L2A_Process.bat -help”, there were no errors. I read the granules and the program began to process the data. The process was very slow. I left the processing all night, but it was still processing in the morning. In addition, I noticed that the process didn’t want to end because it started repeating itself. The data were processed in more than 99%, then it dropped to 97%, then it increased to about 99% and so on over and over. I had to stop the process. There were no errors in the console. It seems to me that program couldn’t pass the final processing stage. In addition, one granule in an anaconda is processed on another computer for about 15 minutes, but here it lasts all day and hasn’t ended. I also noticed that a folder with L2A data was created, but missing jp2 files. I have not installed anaconda on my computer, but I have GDAL. I also tried changing the environment variables, but nothing changed.
I have the same problem. Does anyone knows how to solve it?