This is the installation procedure for the new Sen2Cor stand-alone installers, first released with V2.4.0.
After download and installation these packages will work fully autonomously, isolated, and do not need any further installation of Anaconda, GDAL, OpenJPEG or any other python packages.
The installation procedure is as follows:
Download the package of your choice from the ESA STEP website which is accessible here:
http://step.esa.int/main/third-party-plugins-2/sen2cor/
- Sen2Cor-2.4.0-win64.zip
- Sen2Cor-2.4.0-Linux64.run
- Sen2Cor-2.4.0-Darwin64.run
On Windows: extract the zipped archive with an unzip tool. This will create a folder named: Sen2Cor-2.4.0-win64.
Edit: Please have a look at these instructions: Sen2cor 2.4.0 on SNAP 6.0
You can place the extracted folder in your user account at your choice. Then, change into the directory Sen2Cor-2.4.0-win64 using the windows command line interpreter and call the command āL2A_Process.bat āhelpā. It shall show:
C:\Users\example_user\AppData\Local\Sen2Cor-2.4.0-win64\L2A_Process.bat --help
usage: L2A_Process.py [-h] [āresolution {10,20,60}] [āsc_only] [ācr_only]
[ārefresh] [āGIP_L2A GIP_L2A]
[āGIP_L2A_SC GIP_L2A_SC] [āGIP_L2A_AC GIP_L2A_AC]
directory
If the processor replies as shown above without any error, you are ready to process. If you add the directory containing the L2A_Process.bat file to your path, you can call the processor directly from the directory where you host the Level-1C user products.
The configuration data of the processor are by default copied into the folder āsen2corā inside the Document directory of your home folder.
On Linux and macOS: extract the compressed archive with the system command:
ābash Sen2Cor-2.4.0-Linux64.runā, or
ābash Sen2Cor-2.4.0-Darwin64.runā
The installers will then create the folder: Sen2Cor-2.4.0-Linux64, respective Sen2Cor-2.4.0-Darwin64 under the current directory. There is also an option to specify the target folder during installation time, and to give an appropriate name for the installation directory:
Example (for Linux, Mac follows the same principle):
To use a different installation directory use the --target option:
ābash ./Sen2Cor-2.4.0-Linux64.run --target /tmp/sen2cor240ā
Then, change into the directory Sen2Cor-2.4.0-Linux64 using the Linux bash shell. Confirm that Sen2Cor is correctly installed with the following command:
bash: bin/L2A_Process --help
usage: L2A_Process.py [-h] [āresolution {10,20,60}] [āsc_only] [ācr_only]
[ārefresh] [āGIP_L2A GIP_L2A]
[āGIP_L2A_SC GIP_L2A_SC] [āGIP_L2A_AC GIP_L2A_AC]
directory
If the processor replies as shown above, you are ready to process. Optionally, you can source the script L2A_Bashrc located in the root folder of the installation automatically from your .bashrc or .profile. Thereafter, you can call the processor directly from the directory where you host the Level-1C user products. The configuration data of the processor are by default copied into the folder āsen2corā inside of your home folder.
The uninstallation of the packages is simply done by removing the installed folder. There are no further leftovers except the sen2cor configuration in your home folder, which can also simply be removed.
If you observe any issues during installation or usage of the standalone installers, please reply here, under this thread, with an explicit information on which operating system the issue occurred. Please, do not open a new thread for this purpose, as it will be difficult for us to track the problems, if multiple threads with the same issues exist.
with best regards,
Sen2Cor Development Team
Update on 21/09/2017: the macOS standalone package of sen2cor 2.4.0 contained a bug preventing it from being used along with an existing install of anaconda and glymur. This has been fixed. If you get the following warning on MacOS : libopenjp2.dylib could not be loaded , please download the package Sen2Cor-2.4.0-Darwin64.run again from the website and install it again.
We are very sorry for the inconvenience,
Sen2Cor Development Team