Installation for Linux (tested with Ubuntu 20.04)

Note

The SenSARP has been developed against Python 3.6. It cannot be guaranteed to work with previous Python versions.

The first step is to clone the latest code and step into the check out directory:

git clone https://github.com/multiply-org/sar-pre-processing.git
cd sar-pre-processing

Installation with Conda

Download and install Anaconda or Miniconda. Anaconda/Miniconda installation instructions can be found here

To install all required modules, use:

conda env create --prefix ./env --file environment.yml
conda activate ./env # activate the environment

To install SenSARP into an existing Python environment, use:

python setup.py install

To install for development, use:

python setup.py develop

Installation with virtualenv and python

Install system requirements:

sudo apt install python3-pip python3-tk python3-virtualenv python3-venv virtualenv

Create a virtual environment:

virtualenv -p /usr/bin/python3 env
source env/bin/activate # activate the environment
pip install --upgrade pip setuptools # update pip and setuptools

To install SenSARP into an existing Python environment, use:

python setup.py install

To install for development, use:

python setup.py develop

GDAL package needs to be installed too:

sudo apt install gdal-bin libgdal-dev

python -m pip install pygdal=="`gdal-config --version`.*"

Further information

Please see the environment file for a list of all installed dependencies during the installation process. Additionally, ESA’s SNAP Sentinel-1 Toolbox (Version >8.0.3) has to be installed prerequisite. The Software can be downloaded here. To install the SNAP toolbox, open a terminal window and use:

bash esa-snap_sentinel_unix_8_0.sh

SenSARP uses only functionalities of the Sentinel-1 Toolbox.

Note

Currently, only SNAP version 8.0 can be downloaded from the website. To update SNAP to a version >8.0.3 please start the SNAP software. You will be asked if you want to search for update. Please search for updates and install all updates. After the updates are installed, you need to restart SNAP to initialize the updates correctly.

SNAP Toolbox need libgfortran for specific operations but currently libgfortran is not installed during the installation process of SNAP, therefore you might use:

sudo apt-get install gfortran