Sen2Cor does not start to process (and does not return any errors)

Hi Daniel,
Yes, i solve the problem according Omnishambles answer here - Sen2Cor does not start to process (and does not return any errors)

Ori

Hello everyone, despite all comments regarding a positive solution on the issue of ā€œthe black console window with no processā€, I havenā€™t manage to get a solution myself. I still have the same problem and iā€™ve tried everything described for each one of you that appeared as a possible solution. Is there a clean way out to this problem? I have SNAP 4.0 and all new versions of Anaconda and Sen2Cor 2.2.1 installed and integrated. I left default paths to all environment variables. I also gave new paths after all error messages when started the tool at any resolution. I donā€™t know if iā€™m missing any step in order to get this thing right. Also, i moved the product close to C:.
Iā€™d appreciate some help please!!

Best regards

I have the same situation, and have done for months. I updated SNAP to version 4. I followed the release notes for the latest Sen2Cor (update conda, update anaconda, unistall previous sen2cor, reinstall new version via command line, integrate with Snap), but although the processor starts, it fails after about 6 seconds, regardless of resolution. So frustrating - Iā€™m sick of trying to get it to work and failing. I wish there was an option to obtain the products pre-processed as there is with USGS landsat data.

Hi, Reflectance, this is what I did and now Sen2cor is working:

I re-installed everything from scratch, changing two things from the very beginning :

  1. I assigned a path to python.exe from the anaconda install wizard at the beginning of the installation
  2. As I was installing SEN2COR I realized in the command prompt SEN2COR_HOME was assigned a path and that location was different from what I had set in my system variables, so I changed it.
  3. And the rest of my system variables look like this:

Now iā€™m trying to solve the 10m resolution issue of the correction. If you have any questions just let me know.

Good luck!

Thank-you junoangarita! I changed the location of the python_exe file to its true location and the processor worked a little better. It still didnā€™t complete processing on any of the resolutions however. Perhaps because I have only one tile stored instead of the entire L1C product (to save space)? I canā€™t get it to work from the command line either. I think Iā€™ll wait until they change the product format to single tiles, then try again. As I said though, itā€™s a shame that acquiring BOA reflectance data from this beautiful sensor is so difficult (for some of us at least). Good luck with your 10m resolution issue.

I totaly back your opinion, itā€™s a total shame to have such a nice product and not be able to do anything with it. Try downloading the whole product, processing it and then erasing the rest you wonā€™t need. I actually only work with one tile everytime cause never need a bigger scene. Check again all your variables, I also had problems with the sen2cor_home path try changing that too. It took me a month to solve only that. I guess ESA will have to find another image lab to work for them bcause these guys arenā€™t just doing things right, theyā€™re not giving full support to users.
Good luck, if get to stumble upon the 10m processing error let me know.

@junoangarita
Workaround for 10m processing:

I agree with you guys; itā€™s a pity that Sentinel-2 usage is impeded by the flawed sen2cor tool and its unattended bugs. It takes a lot of know-how and effort to get it running.
I have high hopes on @OHagolle and his team fixing the issue with the MACCS processing or sen2cor being replaced by another processing framework.

Thanx for the workaround unnic iā€™m gonna try thatā€¦

hey unnic, if thereā€™s a newer workaround let us now, I think that used to work for the previous version of sen2cor since line 1380 does not look anything like whatā€™s being suggested, I suppose itā€™s because iā€™m using a newer version of the tool.

Best regards

Thanks for your ā€œhigh hopesā€, Unnic !

I have to say that MACCS and SEN2COR were developed with different objectives, MACCS being a processor working only on specific unix platforms in a ground segment framework, and SEN2COR being a cross-platform software distributed to users.

Sen2cor works well on my linux computer, and seems to work on different platforms even if not all of them. I understand it is quite difficult to have it working in all sorts of platforms, in stand alone version or integrated to SNAP.

MACCS will not be used in the same way :

  • It will be used in Theia to produce L2A data over 5M square kilometers ( http://www.cesbio.ups-tlse.fr/multitemp/?page_id=7501 ).
  • It will be integrated in the Sen2Agri package that will be distributed in spring next year, but will require strong linux computer with Red Hat or Cent OS distributions,
  • and, together with DLR, we are trying to convince ESA to use it within its ground segment, but there is a long way to go.

THEIA should start distributing all the S2A data acquired above France before the end of this month. The release will be announced here : http://www.cesbio.ups-tlse.fr/multitemp/

@OHagolle

ok, too bad because I need to run the process locally so MACCS seems to be out of the picture now. Many working environments donā€™t provide the opportunity to choose your own OS
I have to disagree with ā€œSen2cor work wellā€, at least on windows and ubuntu. If you take a look around in the forum you will see itā€™s true for others as well (i.a. 1 (the first comment summarizes the issues pretty well) 2 3 4 5 6ā€¦) Please note the absence of comments from the dev team. Issues we are discussing here are kown and often more than 8 months old and are still not adressed. sen2cor seems to be poorly- or even un-maintained.

I know that often you canā€™t choose, but it is such a pain and cost being flexible on environments.
Where is your ROI ? I gues it is not included in the zones processed by Theia ?

Sen2cor works on my ubuntu (14.04, 3 different computers), I did not try windows.
This post was processed on ubuntu ; http://www.cesbio.ups-tlse.fr/multitemp/?p=7550
Olivier

Unfortunately my ROI is not covered by Theia.
I know your blog and appreciate it, found some good info and inspiration on it, thanks!

Hello, what if SEN2COR_BIN or SEN2COR_HOME is not in my list. Do i simply just add it?