I have sen2cor installed from within SNAP, but the environmental variables are not set:
PYTHON_BIN is set to python, which in my system is:
alobo@Delia:~/snap$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 18 jun 4 2015 /usr/bin/python -> /usr/bin/python2.7
How should I set the 2 SEN2COR env. var.?
Perhaps /home/alobo/snap/s2tbx/modules ?
I am using Sen2Cor on linux from the command line. I prefer this because Sen2Cor processing takes some time. Thus I can process L1C products and at the same time analyse results of others within SNAP.
Installing Sen2Cor outside SNAP there are set all the environment variables correctly and Sen2Cor is running. The only I had to do was editing the shell scripts because I am working with cshrc and not with bashrc. Thus I had to change all “export” commands to “setenv”.
Script L2A_Cshrc sets the environment variables (for my insatllation) as follows:
setenv SEN2COR_HOME /users/bdpg/sen2cor
setenv SEN2COR_BIN /usr/local/anaconda/lib/python2.7/site-packages/sen2cor-2.0.6-py2.7.egg/sen2cor
setenv GDAL_DATA /usr/local/anaconda/share/gdal
L2A_process extends the path:
setenv PATH /usr/local/anaconda/bin:$PATH
I hope this will help you.