SWAM Operator - Installation on Windows - Anaconda


  1. Install Anaconda 3 v4.3.1:

    See https://repo.continuum.io/archive/

  2. Configure Anaconda to use python 3.4: conda install python=3.4.0
  3. Install xmltodict from the command prompt : pip install xmltodict
  4. Install rasterio: conda install rasterio
  5. Install future : pip install future
  6. pip install spectral
  7. Install xmltodict from the command prompt : conda install xmltodict
  8. 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. Open an Anaconda command prompt
    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".
  9. Configure python in SNAP via command line:

    snappy-conf [PathToAnacondaInstallationFolder]/python.exe

    For example: D:\Tools\Anaconda3\python.exe

  10. Set environment variables :
    1. PATH = [Path to Anaconda installation folder]; [Path to Anaconda installation folder]/bin; [Path to Anaconda installation folder]/scripts;%PATH%
    2. PYTHONPATH = [sambucaFolder] ;[sambucaCoreFolder] ; [snap-pythonFolder]; [Path to Anaconda installation folder]/DLLs;[[Path to Anaconda installation folder]/Lib; [Path to Anaconda installation folder]]/Lib/site-packages
    3. PYTHONHOME = [Path to Anaconda installation folder]



Back to SWAM Algorithm Specification