Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

dpolcat

dpolcat is a tool for the semantic categorization of dual-polarimetric synthetic aperture radar (SAR) imagery. (Specifically, Sentinel-1 with VV and VH polarizations at present.)

It is inspired by Dr. Andrea Baraldi's Satellite Image Automatic Mapper™ (SIAM™) concept of spectral categories for optical data, the Sen2Cube project, and Luuk van Der Meer's Semantique.

Status: This is a research project with occasional updates.

Overview

Different objects on the earth's surface scatter the microwave signals that radar satellites emit and receive, in different ways.

Scatterer types

We bin the backscatter received in the same- (VV) and cross-polarized (VH) signals into distinct polarimetric categories that give a hint at what's on the ground.

Our polarimetric categories

TODO: 👆 update this (new categories).

We can then make inferences based on how these categories are distributed in an area, or change over time.

Demo panels, flood mapping

TODO: 👆 update this (colour scheme, result output).

[*]: Copernicus EMSR517

This is implemented in a Python library that performs scaling, speckle-filtering, and then categorization, using a decision-tree algorithm.

Block diagram.

TODO: 👆 scaler should be linear to dB; add speckle filter.

It uses the Numba just-in-time compiler to increase performance, and Dask for parallelization.

Colour palette

A note on the colour palette. The choices loosely follow these rules:

  • Natural phenomena map to pale colours.
  • Man-made phenonema map to bright colours.

Sometimes the colours resemble certain land cover types. This may not be coincidence. BUT, there's no one-to-one mapping of land cover type to category/colour.

Category numbering

The numbering of the categories, i.e., their indices, has a property with an interesting side effect: they loosely increase in order of magnitude of the VV+VH vector they represent. This means modelling and visualization can sometimes use the category index alone as an input. E.g.,

TODO: B/W & viridis map of Graz + caption.

Environment

Launch marimo notebooks via either:

  • Pixi - run pixi run marimo edit (a browser opens automatically).
  • Docker - use locally with, e.g., docker compose up and browse to localhost:8080. ⚠️ This opens a notebook server without authentication, make sure to be behind a properly configured firewall.

Contents

'🟢' indicates the file can be run as a marimo notebook.

📄 dpolcat.py

The dpolcat module, containing the main algorithms/functions for performing polarimetric categorization.

📄🟢 dpolcat.processor.py

A parameterized notebook containing a batch processing workflow.

📄 dpolcat_modelling.py

Helpers for creating semantic models with categories.

📄🟢 dpolcat.utils.py

Contains reusable utility/helper functions etc. for working with dpolcat in various settings.

📄🟢 demo_01_intro.py

An introduction to dpolcat.

📄🟢 demo_02_flood.py

Demonstration of a simple flood modelling and mapping workflow using dpolcat.

📄🟢 demo_03_batch_processing.py

A batch processing/datacube-writing demonstration.

📄🟢 demo_04_urban.py

Demonstration of some simple urban change modelling and mapping.

📄🟢 gis/inverness_*.py

Exploratory analysis of SAR signals and dpolcat processing in a study area of Inverness, Scotland.

📄 pc_rio_driver.py

A utility class for odc-stac which takes care of Planetary Computer asset signing.

📄 fast_frost.py

A numba-based implementation of a Frost speckle filter.

📁 gis/duisburg

Supplementary folder for the demo notebook's flood mapping example, containing a QGIS project and associated data for accuracy assessment.

📁 gis/graz

Supplementary folder inc. QGIS project for the Graz-related demos.

📁 archive

Some things based on earlier versions, which may be useful for additional context.

📄 media/EARSeL2024-Slides.pdf

Slides presented at the 43rd EARSeL Symposium in Manchester, UK, 17-June-2024. (Based on an older version.)

📄 media/poster.pdf

A simple poster about the project presented internally (based on an even older version).

Credits

Imagery: Contains modified Copernicus Sentinel data, processed by ESA and others.

Flood reference: Copernicus Emergency Mapping EMSR517

Graz aerial imagery: TODO: add source.

Authors

Created by Luke McQuade at Z_GIS, originally as part of the the Applied Geoinformatics MSc programme.

Acknowledgements

We would like to greatly thank the members of the EO Analytics Group and Dr. Zhara Dabiri of the Risk, Hazard and Climate Lab for their ideas and support, and Assoc. Prof. Hermann Klug and Dr. Bernhard Zagel for their instruction and continuous feedback.

Further developments have been part of my masters thesis, supervised by Prof. Dr. Dirk Tiede, Dr. Martin Sudmanns, and Dr. Zhara Dabiri.

References

Augustin, H., Sudmanns, M., Tiede, D., Lang, S., & Baraldi, A. (2019). Semantic Earth observation data cubes. Data, 4(3), 102. DOI: 10.3390/data4030102

Baraldi, A., Humber, M.L., Tiede, D., Lang, S. (2018). GEO-CEOS stage 4 validation of the Satellite Image Automatic Mapper lightweight computer program for ESA Earth observation level 2 product generation – Part 2: Validation. Cogent Geosci. 4, 1–52. DOI: 10.1080/23312041.2018.1467254

Meyer, F. (2019), Ch. 2, The SAR Handbook: Comprehensive Methodologies for Forest Monitoring and Biomass Estimation. DOI: 10.25966/nr2c-s697

Metadata

Release files for dpolcat 0.2.0.dev5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dpolcat 0.2.0.dev5
File Interpreter ABI Platform Actions
dpolcat-0.2.0.dev5-py3-none-any.whl Python 3 none any Details for dpolcat-0.2.0.dev5-py3-none-any.whl

Release files / dpolcat-0.2.0.dev5-py3-none-any.whl

Download URL dpolcat-0.2.0.dev5-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27676f6b0abe00e51bdf3d72ba9b710dc5ab6d4ba19ca5b498608f070d3659b3
BLAKE2b-256 checksum
How to use checksums
4a5b2b5a07f671af7e1eb1f79e535da2528c93c45f2c3f78b4a37335e913c4be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for dpolcat 0.2.0.dev5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page