- Install WinPython3.4:
See https://sourceforge.net/projects/winpython/files/WinPython_3.4/3.4.4.5
- Install rasterio (rasterio-1.0a5-cp34-cp34m): http://www.lfd.uci.edu/~gohlke/pythonlibs/
Download the whl file and from a WinPython Command Prompt
navigate to the folder containing the downloaded file and:
pip install "rasterio-1.0a5-cp34-cp34m...".whl
- Install xmltodict : pip install xmltodict
- Install spectral : pip install spectral
- Install future : pip install future
- Install Sambuca & Sambuca_core:
- Create a directory called "sambuca_project"
- Download Sambuca and Sambuca_core and copy them in
"Sambuca_project"
https://github.com/senbox-org/sen2coral-box
- In the WinPython directory, execute "WinPython Command
Prompt.exe"
- Using the Command Prompt, go into the directory
Sambuca_project/Sambuca_core and type "python setup.py
develop"
- Using the Command Prompt, go into the directory
Sambuca_project/Sambuca and type "python setup.py develop".
- Configure python in SNAP via command line:
snappy-conf
[PathToWinPythonInstallationFolder]/[pythonFolder]/python.exe
For example:
D:\Tools\WinPython-64bit-3.4.4.6Qt5\python-3.4.4.amd64\python.exe
- Set environment variables :
- PATH =
[PathToWinPythonInstallationFolder]/[pythonFolder];%PATH%
- PYTHONPATH = [sambucaFolder] ;[sambucaCoreFolder] ;
[snap-pythonFolder];
[PathToWinPythonInastallationFolder]/[pythonFolder]/DLLs;[PathToWinPythonInastallationFolder]/[pythonFolder]/Lib;[PathToWinPythonInastallationFolder]/[pythonFolder]/Lib/site-packages
- PYTHONHOME =
[PathToWinPythonInastallationFolder]/[pythonFolder]