[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116618":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":14,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":27,"discoverSource":28},116618,"pyGeoMapper","GeoLarryLai\u002FpyGeoMapper","GeoLarryLai","Geologic and surface-change mapping from satellite images and DEMs.","https:\u002F\u002Fgeolarrylai.com\u002Fprojects\u002FpyGeoMapper\u002F",null,"Python",54,10,2,0,1,44.32,"GNU Affero General Public License v3.0",false,"main",true,[],"2026-11-13 04:32:40","2026-11-21 20:10:15","\u003Cp align=\"center\">\u003Cimg src=\"image\u002Flogo.png\" alt=\"pyGeoMapper\" width=\"220\">\u003C\u002Fp>\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fdoi.org\u002F10.5281\u002Fzenodo.23832020\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDOI-10.5281%2Fzenodo.23832020-blue\" alt=\"DOI\">\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FGeoLarryLai\u002FpyGeoMapper\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-AGPL--3.0--or--later-lightgrey\" alt=\"License\">\u003C\u002Fa>\n\u003Cbr>\n\u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygeomapper\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10%2B-lightgrey\" alt=\"Python versions\">\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygeomapper\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fpygeomapper?color=orange\" alt=\"PyPI version\">\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fpepy.tech\u002Fprojects\u002Fpygeomapper\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpepy\u002Fdt\u002Fpygeomapper?label=pypi%20downloads&color=orange\" alt=\"PyPI downloads\">\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fanaconda.org\u002Fconda-forge\u002Fpygeomapper\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fconda\u002Fvn\u002Fconda-forge\u002Fpygeomapper?label=conda-forge&color=green\" alt=\"conda-forge version\">\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fanaconda.org\u002Fconda-forge\u002Fpygeomapper\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fconda\u002Fdn\u002Fconda-forge\u002Fpygeomapper?label=conda%20downloads&color=green\" alt=\"conda downloads\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n# pyGeoMapper\n\n> [!WARNING]\n> **pyGeoMapper** is under active development, and many functions are still experimental and not fully validated. Please use with caution.\n\n**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\u002FPyGeoMapper`.)\n\n## Data types\n\npyGeoMapper can read, analyze, and visualize:\n\n- **Elevation:** DEMs and lidar (Copernicus GLO-30, USGS 3DEP lidar); terrain derivatives, CWT complexity, DEM of Difference\n- **Optical imagery:** multispectral Sentinel-2 and Landsat, NAIP aerial RGB; spectral indices (NDVI, NBR, NDWI, BSI, clay and iron ratios) and their change; optical feature-tracking velocity\n- **Satellite embeddings:** 64-band Google AlphaEarth annual embeddings for classification and embedding change\n- **InSAR:** Sentinel-1 LiCSAR displacement, offsets, and wrapped phase; UAVSAR unwrapped phase to LOS; Okada fault models\n- **Ice velocity:** NASA ITS_LIVE velocity grids and speed change\n- **Geology:** geologic map polygons as training and validation labels, bed attitudes (strike\u002Fdip), and fault traces for cross-sections and 3D block models\n\n## Installation\n\n```bash\npip install pygeomapper\n```\nor from `conda-forge` repository with `conda`:\n```bash\nconda install pygeomapper\n```\n\n```bash\n# from source (Python 3.10+, Rust 1.75+):\ngit clone https:\u002F\u002Fgithub.com\u002FGeoLarryLai\u002FpyGeoMapper.git && cd pyGeoMapper\npip install maturin && maturin develop --release\n```\n\n`pip install pygeomapper` includes the `forge3d` 3D terrain renderer. If the renderer is missing, run `pip install forge3d`; otherwise `viewer_3d` falls back to its built-in renderer automatically.\n\n## Citation\n\nLai, L.S.-H. (2026) pyGeoMapper. *Zenodo*, [https:\u002F\u002Fdoi.org\u002F10.5281\u002Fzenodo.23832020](https:\u002F\u002Fdoi.org\u002F10.5281\u002Fzenodo.23832020)\n\nMethods: [Horn (1981)](https:\u002F\u002Fdoi.org\u002F10.1109\u002FPROC.1981.11918),\n[Zevenbergen & Thorne (1987)](https:\u002F\u002Fdoi.org\u002F10.1002\u002Fesp.3290120107),\n[Nuth & Kääb (2011)](https:\u002F\u002Fdoi.org\u002F10.5194\u002Ftc-5-271-2011),\n[Montero et al. (2023)](https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41597-023-02096-0),\n[Lai et al. (2025)](https:\u002F\u002Fdoi.org\u002F10.5194\u002Fesurf-13-417-2025),\n[Brown et al. (2025)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2507.22291),\n[Okada (1985)](https:\u002F\u002Fdoi.org\u002F10.1785\u002FBSSA0750041135),\n[Staley et al. (2017)](https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.geomorph.2016.10.019),\n[Horton et al. (2017)](https:\u002F\u002Fdoi.org\u002F10.3133\u002Fds1052). Data sources: `example_data\u002FSOURCES.txt`, `NOTICE`.\n\n## What it can do\n\n- Map terrain and surface features: spectral indices plus slope, curvature, roughness, and multiscale CWT complexity\n- Make supervised geologic unit maps from AlphaEarth embeddings and other features, scored against a geologic map\n- Reconstruct those maps as cross-sections and 3D geologic models you can open in a browser\n- Detect surface change at different temporal and spatial scales: DEM of Difference, spectral change, and InSAR, including landslides, fires, floods, earthquakes, earthflows, and glaciers\n\n## Landscape features and geologic mapping\n\nThis part covers automated geologic mapping with supervised machine learning. Models are trained from geomorphic surface features and surface-geology constraints, then the mapped units are reconstructed as cross-sections and a 3D structural model.\n\n![Multiscale CWT complexity](image\u002Fcwt_multiscale.png)\n*Sheep Mountain, Wyoming — **DEM** + 2D Mexican-hat **continuous wavelet transform** ([pyTopoComplexity](https:\u002F\u002Fgithub.com\u002FGeoLarryLai\u002FpyTopoComplexity)): ridges and valleys, mean complexity, A–A′ energy profile, and dominant wavelength.*\n\n![Automatic geologic mapping at Sheep Mountain](image\u002Fauto_mapping_validation.png)\n*Sheep Mountain, Wyoming — **64-band AlphaEarth embeddings** + **supervised ML**, trained on USGS geologic map units in the northwest half and validated on the held-out southeast half (accuracy 91.0%, macro-F1 0.89).*\n\n| Method | Bands | Validation accuracy | Macro-F1 |\n| :--- | ---: | ---: | ---: |\n| Engineered spectral and terrain | 29 | 69.1% | 0.64 |\n| AlphaEarth embeddings | 64 | 91.0% | 0.89 |\n| Combined | 93 | 89.5% | 0.87 |\n\n![Cross-section](image\u002Fcross_section.png)\n*Sheep Mountain, Wyoming — **mapped units + 3-point bed attitudes** projected to A–A′ and B–B′ (~60° apart), with the published SW-dipping ~50° basement thrust.*\n\n![Rotating Sheep Mountain block and sections](image\u002F3d_block_diagram_rotate.gif)\n*Sheep Mountain, Wyoming — **reconstructed 3D geologic block** with matching faulted A–A′ and B–B′ sections; 72 frames at 3 fps (about 24 seconds per turn).*\n\n## Surface change\n\nThis part is a set of toolkits for detecting surface change at different temporal and spatial scales, using a range of remote-sensing data types and methods.\n\n![2014 Oso landslide, Washington](image\u002Foso_landslide.png)\n*2014 Oso landslide, Washington — **DEMs** (pre COP30, post 3DEP lidar) → DEM of Difference (red = erosion, blue = deposit); **Sentinel-2** spectral change (ΔNDVI, ΔNBR); and terrain Δ complexity via CWT ([pyTopoComplexity](https:\u002F\u002Fgithub.com\u002FGeoLarryLai\u002FpyTopoComplexity)).*\n\n![Holiday Farm Fire, Oregon](image\u002Fholiday_farm_fire.png)\n*2020 Holiday Farm Fire, Oregon — **Sentinel-2** SWIR–NIR–red composites before and after, and **burn-ratio change (ΔNBR)**; cyan outline marks higher debris-flow hazard.*\n\n![Yolo Bypass Flood, California](image\u002Fyolo_bypass_flood.png)\n*2019 Yolo Bypass flood, California — **Sentinel-2** before and during the flood, and **water-index change (ΔNDWI)**; cyan outline is the mapped shoreline.*\n\n![Myanmar 2025 earthquake LiCSAR](image\u002Fcase1a_myanmar_earthquake.jpg)\n*2025 Mw 7.7 Sagaing Fault earthquake, Myanmar — **Sentinel-1 LiCSAR InSAR**: north–south displacement, azimuth and range offsets, and wrapped phase.*\n\n![Slumgullion Earthflow, Colorado](image\u002Fslumgullion_earthflow.png)\n*Slumgullion Earthflow, Colorado — **NAIP optical feature tracking** (velocity 2017–2023), **UAVSAR** LOS and rewrapped phase (12–19 August 2011), and **DEM difference** 2024−2015 (red = lowering, blue = raising). Arrows are optical motion only.*\n\n![Jakobshavn ITS_LIVE glacier velocity](image\u002Fcase1d_jakobshavn_glacier.jpg)\n*Jakobshavn Isbræ, West Greenland — **NASA ITS_LIVE velocity**: 2018 surface speed with flow directions, and 2018−2016 speed change.*\n\nFive notebooks in `notebooks\u002F` walk through every module with public data (spectral and surface change,\nterrain complexity, auto-mapping and cross-sections, 3D, and a multi-hazard showcase).\n\n## Quick start\n\n```python\nfrom pygeomapper import raster_io, surface_change, terrain_analysis\n\ndem1 = raster_io.load_geotiff(\"example_data\u002Foso_dem_pre_cop30.tif\")\ndem2 = raster_io.load_geotiff(\"example_data\u002Foso_dem_post_3dep.tif\")\ndod = surface_change.compute_dod(dem1, dem2)                        # elevation change between the two DEMs\ncwt = terrain_analysis.compute_multiscale_complexity(dem2)          # terrain roughness at several scales\n```\n\n## License\n\nCode: **AGPL-3.0-or-later**. You are free to use, modify, and share it; anyone distributing modified code or running a modified version as a network service must share its source under the same license.\n\nThird-party notices and data credits: [`NOTICE`](NOTICE).\n","pyGeoMapper 是一个面向地质与地表变化分析的开源Python工具库，支持基于卫星影像（如Sentinel-2、Landsat、Sentinel-1）和数字高程模型（DEM\u002Flidar）的自动化地表变化检测、地质单元分类、地形特征提取及三维地质建模。其核心采用Rust加速计算，提供光谱指数分析、InSAR位移解译、DEM差分、嵌入式特征变化检测、断层建模与交互式3D可视化等功能。适用于地质灾害（滑坡、地震、火山、冰川跃动）、生态扰动（野火、洪水）及资源勘查等遥感驱动的地学研究场景。","2026-11-24 04:54:03","CREATED_QUERY"]