Skip to content

Re-implementation of selected PolSARpro functions in Python, following the scientific recommendations of PolInSAR 2021 (Work In Progress).

License

Notifications You must be signed in to change notification settings

satim-co/PolSARpro

Repository files navigation

(Py)PolSARPro

"Re-implementation of selected PolSARpro functions in Python, following the scientific recommendations of PolInSAR 2021 (Work In Progress)."

Conda Version Conda Downloads

Installation Guidelines

Install from conda-forge (recommended)

This is the simplest and most reliable installation method.

  • Install the conda package manager (recommended: miniforge).
  • Create a dedicated environment to avoid dependency conflicts:
conda create -n polsarpro
conda activate polsarpro
  • Install the package from the conda-forge channel:
conda install conda-forge::polsarpro

Install with conda using a cloned repository

Choose 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 pytest from the main directory. All tests should pass.

Development Environment (optional)

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.

VSCode Devcontainer

  • 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:

  1. Adjust volume paths in docker-compose.yml to match your system.
  2. Open the project in VSCode.
  3. Use Rebuild and Reopen in Container (Ctrl+Shift+P / Cmd+Shift+P) to launch the devcontainer.

Running the Docker container outside VSCode

  • Intended only for users comfortable managing containers manually.
  • Requires adjusting docker-compose.yml first.

Commands:

docker compose up -d
docker compose down

Getting Started

Read the tutorial:
https://polsarpro.readthedocs.io/en/latest/quickstart-tutorial/

Or open the tutorial notebook in the notebooks/ directory.

About

Re-implementation of selected PolSARpro functions in Python, following the scientific recommendations of PolInSAR 2021 (Work In Progress).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •