"Re-implementation of selected PolSARpro functions in Python, following the scientific recommendations of PolInSAR 2021 (Work In Progress)."
This is the simplest and most reliable installation method.
- Install the
condapackage manager (recommended: miniforge). - Create a dedicated environment to avoid dependency conflicts:
conda create -n polsarpro
conda activate polsarpro- Install the package from the
conda-forgechannel:
conda install conda-forge::polsarproChoose this approach if you want access to the source code.
- Clone the repository from GitHub and move into the project root.
- Install
conda(recommended: miniforge). - Create and activate the environment:
conda env create -f environment.yaml
conda activate psp- Add the toolbox to your
PYTHONPATH:
export PYTHONPATH="${PYTHONPATH}:/mypath/to/polsarpro/source"- To verify the installation, run
pytestfrom the main directory. All tests should pass.
These instructions are intended for contributors or advanced users who want to work with the project's development tooling. They rely on a Docker configuration that mirrors the maintainer’s own setup and may require adjustments depending on your environment.
- Provides a ready-to-use environment for development and testing.
- Includes the C version of PolSARpro for running the legacy version.
- Requires placing the official PolSARpro ZIP archive in the project root before building the container.
- Requires Docker and Docker Compose.
Steps:
- Adjust volume paths in
docker-compose.ymlto match your system. - Open the project in VSCode.
- Use Rebuild and Reopen in Container (Ctrl+Shift+P / Cmd+Shift+P) to launch the devcontainer.
- Intended only for users comfortable managing containers manually.
- Requires adjusting
docker-compose.ymlfirst.
Commands:
docker compose up -d
docker compose downRead the tutorial:
https://polsarpro.readthedocs.io/en/latest/quickstart-tutorial/
Or open the tutorial notebook in the notebooks/ directory.