i have a critical problem with installation sen2cor using command line. I installed Anaconda for Windows and after i want to install sen2cor. During the installation i thnk im doing everything good but when i confirm installation environment settings i obtain error concerning SEN2Cor HOME (picture below)
try to reinstall and set SEN2COR_HOME to a path without spaces (recommended) or try to escape the space:
C:\users\xxxxâŚ\sen2cor\cfg no space
"âC:\usersâ âname\xxxxâŚ\sen2cor\cfgâ escaped with double quote
About problem 2: the error message says L2A_Process canât be launched on its own and prints the usage, that looks right. The setup manual asks to launch âL2AProcess --helpâ to check installation went ok. Have you tried that?
About problem 3: are you sure it is the exact same error message? If yes, can you try to launch âecho %SEN2COR_HOME%â and send us the result?
I have similar problem installing sen2cor as a plugin in SNAP. I have no idea where SEN2COR_BIN is supposed to be. I canât find the file L2A_Process.py anywhere on my (Ubuntu 14.04/64 bit) system.
OK, thanks. The Anaconda pre-requisite is never mentioned when installing as a plugin. I have no direct need for Anaconda and have my gdal and openjp2 libraries installed correctly. Itâs not clear what else is needed. In fact, the actual routine L2A_AtmCor is not even a python script but a binary.
So, apparently, you need to install the sen2cor package first and than install the plugin??? Can we get rid of the Anaconda dependency?
First yoy have to install Anaconda for your system (you can find Anaconda on https://www.continuum.io/downloads) If you install Anaconda later you shold install sen2cor. Dont change anything during instalation Anaconda
What happened to the open source character of the s2tbx? Did that go out of the window with sen2cor?
I donât understand why python code needs to be dependent on a particular installation version. I donât want to change my existing python set-up, which is based on the scientific python installation. It would be better to spell out the dependencies and not build in hard paths to specific packages. Better still to just push out the code, so that I can change what I need.
That seems indeed to be the case. SEN2COR is primarily a wrapper around a proprietary core.
On GitHub it says:
âThis Software contains an IPR of DLR. This part is no Open Source and the module for the Atmospheric Correction is attached to this software in form of a binary library only.â
Thatâs a pity and a pretty strange realisation of what was announced as âopen sourceâ tool. Particularly as the ATBD describing the procedure in all detail is openly available.
Exactly! sen2cor is about the only relevant processing step in s2tbx that you canât do with other tools easily. How can you expect an âopen sourceâ tool to be maintained if it contains black box binary components?
Btw. the ATBD document is corrupt after page 71, with some of the essential annexes missing.
As mentioned above SEN2COR is not part of the open source development of SNAP, but it is an external software package that is being developed separately.