I am using Windows10 and having terrible trouble installing sen2cor I keep getting a python issue when I follow the instructions above and when I try and use it in SNAP I get a whole host of errors.I include some snaps below to show what I have had trouble with - any ideas greatly welcomed!
After working on other things for some days, installing windows updates, another python version and a few other things L2A_Process.bat seems to work now. It shows me the commands to use, one of them is -h. I donāt know what solved the problem.
The version of SNAP is 5.0, and sen2cor is 2.4.0-win, I am sure that I am using the standalone installer, but I have not installed Anaconda, should I install it?
No, if you are using the standalone installer Anaconda is not needed. But this standalone installer is not compatible with version 5.0 of SNAP, so you have to wait to version 6.0 release to be able to use your sen2cor from SNAP. Meanwhile, you should be able to run it from the command line. Have you tried it?
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.
Sen2Core Pathļ C:\Sen2Cor-2.4.0-win64\Sen2Cor-2.4.0-win64
Sen2Core Bin ļ C:\Sen2Cor-2.4.0-win64\Sen2Cor-2.4.0-win64\bin
Sen2Core Homeļ C:\Users\xxx\documents\sen2cor
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?
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.
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.
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.
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.