Skip to main content

pyGeoMapper

pyGeoMapper

PyPI version pepy downloads License: AGPL-3.0-or-later

DEM of Difference and spectral change A DEM of Difference and a spectral change map, the two basic ways the package spots change on the ground.

pyGeoMapper maps what changed on the ground, and what it's made of, using satellite images and elevation models (DEMs). I wanted one place to go from raw rasters to something a geologist can actually read: change maps after a landslide, flood, wildfire, earthquake, volcano or glacier event, unit maps scored against a real geologic map, and cross-sections and 3D block diagrams you can open in a browser. It's Python with a Rust core. (Not related to The-Magicians-Code/PyGeoMapper.)

What it can do

  • Measure surface change: DEM of Difference with co-registration, spectral change, and InSAR/GNSS 3D displacement
  • Compute spectral indices (NDVI, NBR, NDWI, mineral ratios) and terrain metrics (slope, curvature, roughness, multiscale CWT complexity)
  • Make unsupervised and supervised geologic unit maps, with spatial-block holdout accuracy
  • Draw cross-sections and 3D block, cutaway and fence diagrams, and view them in an offline WebGL viewer
  • Five executed notebooks walk through every module with public data

3D geological block diagram A 3D block diagram of Sheep Mountain Anticline.

Install

pip install pygeomapper
# from source (Python 3.10+, Rust 1.75+):
git clone https://github.com/GeoLarryLai/pyGeoMapper.git && cd pyGeoMapper
pip install maturin && maturin develop --release

Quick start

from pygeomapper import raster_io, surface_change, terrain_analysis

dem1 = raster_io.load_geotiff("example_data/oso_dem_pre_cop30.tif")
dem2 = raster_io.load_geotiff("example_data/oso_dem_post_3dep.tif")
dod = surface_change.compute_dod(dem1, dem2)                        # elevation change between the two DEMs
cwt = terrain_analysis.compute_multiscale_complexity(dem2)          # terrain roughness at several scales

Key features

  • Raster I/O (raster_io): CRS-aware GeoTIFF/COG and multi-band stacks, STAC search, AlphaEarth embeddings.
  • Spectral indices (spectral_indices): NDVI, NBR, NDWI, NDMI, BSI and mineral ratios in parallel Rust.
  • Surface change (surface_change): DEM of Difference with co-registration and LoD volumes, spectral and embedding change, InSAR/GNSS 3D displacement, debris-flow susceptibility and multi-hazard fingerprints.
  • Terrain (terrain_analysis): slope, aspect, hillshade, curvature, roughness and multiscale 2D CWT complexity.
  • Mapping (auto_mapping): unsupervised and supervised unit mapping with spatial-block holdout validation.
  • Cross-sections (cross_section): swath profiles, 3-point bed attitudes and geological cross-sections.
  • 3D (viewer_3d): 3D block, cutaway and fence diagrams, GLB/PLY/OBJ export and an offline WebGL viewer.

Examples

Five executed notebooks in notebooks/ of the repository walk through every module with public data:

  1. pyGeoMapper_1_spectral_and_surface_change.ipynb: spectral indices and surface change (Oso landslide)
  2. pyGeoMapper_2_terrain_complexity_and_cwt.ipynb: terrain derivatives and multiscale complexity
  3. pyGeoMapper_3_auto_mapping_and_cross_section.ipynb: automated unit mapping and a cross-section
  4. pyGeoMapper_4_3d_block_diagram_and_viewer.ipynb: 3D block diagrams and the offline viewer
  5. pyGeoMapper_5_multi_hazard_change_showcase.ipynb: earthquake, volcano, glacier, landslide, flood and wildfire cases

How to cite

Lai, L. S.-H. (2026). pyGeoMapper (version 0.1.0) [Computer software]. https://github.com/GeoLarryLai/pyGeoMapper

Full metadata is in CITATION.cff in the repository. Methods: Horn (1981), Zevenbergen & Thorne (1987), Nuth & Kääb (2011), Montero et al. (2023), Lai et al. (2025), Brown et al. (2025), Okada (1985), Staley et al. (2017), Horton et al. (2017). Data sources: example_data/SOURCES.txt, NOTICE.

Third-party notices and data credits: NOTICE.

Metadata

Release files for pygeomapper 0.1.1

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

Source distribution (sdist)

Source distribution for pygeomapper 0.1.1
File Size Uploaded Provenance Actions
pygeomapper-0.1.1.tar.gz 118.1 kB Without provenance Details for pygeomapper-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pygeomapper 0.1.1
File Actions
pygeomapper-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for pygeomapper-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pygeomapper-0.1.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for pygeomapper-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
pygeomapper-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for pygeomapper-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pygeomapper-0.1.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for pygeomapper-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
pygeomapper-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pygeomapper-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pygeomapper-0.1.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pygeomapper-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
pygeomapper-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pygeomapper-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pygeomapper-0.1.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pygeomapper-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 5.0 MB

Release files / pygeomapper-0.1.1.tar.gz

Download URL pygeomapper-0.1.1.tar.gz
Size 118.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f14eefbe70169f817e32b76df0afba1d8da1cc64c27e3895522d003edc777c74
BLAKE2b-256 checksum
How to use checksums
48b7dbac6283f4f7ea53f14b95eb7767aeb534a5b5be50e93ea83714c157949d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pygeomapper-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 612.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7b2d1ba73acd6b7a26641a9c25a2cdfa7f61e585d2d823e31a873962c04f8508
BLAKE2b-256 checksum
How to use checksums
09cb9449b6c1c20cd16b3c81c4df10fc6448e2fe84ac94d493e383295d7376e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL pygeomapper-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Size 596.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
acedfe1d972dfc3b8ad7543d8b9e282bd824a4f57a8c6d63f45732a6718cbbfe
BLAKE2b-256 checksum
How to use checksums
64e89bc85e3f8d76092b61b771cdd52b370efe93fb3d6ead726d81b5a6c57616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pygeomapper-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 613.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b74334eca19f5fda85359fae65f4a703d7e519343ca597714c36d578bc2653fd
BLAKE2b-256 checksum
How to use checksums
cf68f7206f676d56055cf706b1291e231d238816cf7aefa073b00310a4581e04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL pygeomapper-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 596.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
09255e229f20c776ede7fd223d94f366dbab613917a1a9391da824817dcc7c31
BLAKE2b-256 checksum
How to use checksums
92c2946e26850ae6b06542b254a3966d33b4c7bbb1f3e3dfe6c21d6f03a304ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pygeomapper-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 613.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a738ed55f731505a544b2fe62005aecc0f68f80cdb635496f51f20f27883ad81
BLAKE2b-256 checksum
How to use checksums
99a0f0b54fa96f3f84e49d931f67d9e0c39655ffff0b34d7cbc1e2954279079d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL pygeomapper-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 597.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c56503fae5f6418e1041739218f3e3ea5ce074a9d529972827d5020ec14bf988
BLAKE2b-256 checksum
How to use checksums
6a23eed7906adfe28aafd5fcb4d74497b08b0da18d9a6687cb85bbeb3a799eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pygeomapper-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 614.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
11883f2e579e0b06554852b783e8648b5feaeafeae13e9dd668b8f72f803639a
BLAKE2b-256 checksum
How to use checksums
9a5eaff575a3f1b34e959d11e9187fa44752c912df6785c9cd11660688e87427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pygeomapper-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL pygeomapper-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 598.4 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
22f9d492995ba5f23ed0b408fa3e54a442f59fec52fbfc7b20b47d4bac899ca2
BLAKE2b-256 checksum
How to use checksums
060dedefd401f717c00e03ecd9990827018b01c4e602f63a1c2252c5c8b4f053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for pygeomapper 0.1.1

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