SWAM Operator - Installation on Windows - WinPython


  1. Install WinPython3.4:

    See https://sourceforge.net/projects/winpython/files/WinPython_3.4/3.4.4.5

  2. 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

  3. Install xmltodict : pip install xmltodict
  4. Install spectral : pip install spectral
  5. Install future : pip install future
  6. Install Sambuca & Sambuca_core:
    1. Create a directory called "sambuca_project"
    2. Download Sambuca and Sambuca_core and copy them in "Sambuca_project"

      https://github.com/senbox-org/sen2coral-box

    3. In the WinPython directory, execute "WinPython Command Prompt.exe"
    4. Using the Command Prompt, go into the directory Sambuca_project/Sambuca_core and type "python setup.py develop"
    5. Using the Command Prompt, go into the directory Sambuca_project/Sambuca and type "python setup.py develop".
  7. 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

  8. Set environment variables :
    1. PATH = [PathToWinPythonInstallationFolder]/[pythonFolder];%PATH%
    2. PYTHONPATH = [sambucaFolder] ;[sambucaCoreFolder] ; [snap-pythonFolder]; [PathToWinPythonInastallationFolder]/[pythonFolder]/DLLs;[PathToWinPythonInastallationFolder]/[pythonFolder]/Lib;[PathToWinPythonInastallationFolder]/[pythonFolder]/Lib/site-packages
    3. PYTHONHOME = [PathToWinPythonInastallationFolder]/[pythonFolder]



Back to SWAM Algorithm Specification