Skip to main content

zemin

زمین — earth, ground, geotechnical subsoil. The same word in Persian (zamīn), Azerbaijani (zəmin), and Turkish (zemin, as in zemin etüdü — geotechnical ground survey).

Audit urban land subsidence, seasonal aquifer rebound failure, dynamical resilience (Ornstein-Uhlenbeck critical slowing down), and structural differential settlement from open Sentinel-1 InSAR, piezometer, and GeoJSON corridor data—entirely offline.

Southwest Tehran (Districts 17–19, Shahriar, Varamin) and Karaj experience severe groundwater-driven subsidence that silently stresses water mains, gas trunks, metro tunnel linings, and building foundations. Engineering consultancies and utilities often rely on static, years-old borehole reports while InSAR pipelines fail silently on phase-unwrapping jumps or low coherence. zemin turns raw InSAR and groundwater exports into versioned, reproducible geotechnical risk dossiers.

Zero runtime dependencies for the core engine (no GDAL, no Shapely, no cloud APIs). Runs 100% offline.

pip install zemin

Python 3.10+. Apache 2.0.

INSTALL · TESTING · TROUBLESHOOTING · PUBLISHING · ROADMAP · CHANGELOG


The thirty-second version

# 1. Generate a 3-year synthetic SW Tehran District 18 corridor + GeoJSON and audit it
zemin demo --out-csv tehran_d18_insar.csv --out-geojson tehran_d18_corridor.geojson

# 2. Audit any MintPy, LiCSAR, or TAMAB piezometer CSV inside a project polygon + Persian dossier via Ollama
zemin audit examples/tehran_d18_insar.csv \
  --polygon examples/tehran_d18_corridor.geojson \
  --json-out d18_audit.json \
  --dossier fa --model gemma3:12b

# 3. Compare two survey periods longitudinally
zemin diff examples/tehran_d18_insar.csv examples/tehran_control_stable.csv \
  --polygon examples/tehran_d18_corridor.geojson

Seven dynamical & geotechnical hazards detected

Code What it measures
SUBSIDENCE_VELOCITY_HAZARD Vertical subsidence velocity (mm/yr), auto-projecting Sentinel-1 LOS via d_v = d_LOS / cos(theta)
SUBSIDENCE_ACCELERATION Seasonally adjusted quadratic downward curvature (mm/yr^2) with t-statistic significance gating
AQUIFER_REBOUND_FAILURE Collapse of wet-season elastic uplift & seasonal harmonic decay (irreversible clay compaction)
CRITICAL_SLOWING_DOWN Rolling Ornstein-Uhlenbeck AR(1) recovery-rate decline (Marriott-Pope bias corrected) + rising variance
DIFFERENTIAL_SETTLEMENT_TILT Pairwise Haversine angular distortion `
GROUNDWATER_COMPACTION_COUPLING Piezometer head drop (m/yr) and GRACE TWS loss (cm/yr) coupled to skeletal compaction ratio (mm/m)
INSAR_DATA_INTEGRITY Pre-sign-off quality audit for low temporal coherence and Sentinel-1 C-band phase-unwrapping jumps (~28 mm)

Built-in zero-dependency adapters

Adapter Data Source Handles
mintpy MintPy / ASF HyP3 / ARIA PS-InSAR Both wide (D20240101...) and long formats, meters-to-mm scaling, LOS-to-vertical projection
licsar COMET-LiCSAR / LiCSBAS Frame cumulative displacement exports and average coherence
piezometer Iran TAMAB / ABFA wells & GRACE/ERA5 Depth-to-water, extensometer settlement, Persian/Arabic digits (۰۱۲۳۴۵۶۷۸۹)
generic Standard .csv and .jsonl Clean multi-site geospatial time series

GeoJSON Polygon and MultiPolygon spatial filtering is built into zemin.geo using pure-Python ray-casting and Haversine geometry—zero native GDAL/GEOS compilation issues.


Offline RTL Persian dashboards

# FastAPI + built-in RTL Persian dashboard (http://127.0.0.1:8000)
pip install "zemin[web]"
zemin serve --port 8000

# Or RTL Persian Streamlit dashboard
pip install "zemin[streamlit]"
streamlit run src/zemin/streamlit_app.py

Licence

Apache 2.0.

Metadata

Release files for zemin 0.1.0

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

Source distribution (sdist)

Source distribution for zemin 0.1.0
File Size Uploaded Provenance Actions
zemin-0.1.0.tar.gz 37.7 kB Without provenance Details for zemin-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 78.6 kB

Release files / zemin-0.1.0.tar.gz

Download URL zemin-0.1.0.tar.gz
Size 37.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6c66157aea6bfeb8c2b910f36b32143069e14bc1ef1b4b5c47c094f93260f2e7
BLAKE2b-256 checksum
How to use checksums
b64013e91daadc1e1cb13f3ff3d94201ea173364314bce03ecfffd58103b0367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / zemin-0.1.0-py3-none-any.whl

Download URL zemin-0.1.0-py3-none-any.whl
Size 40.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ec217826d84b3ede5e953649445b87656f7b0a343f228d2e36a67e76e637b2f
BLAKE2b-256 checksum
How to use checksums
af73fdae099551c8d6ef0bac3dc1ded2a559d230c1060185feeeb6822ab54e63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for zemin 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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