quakecascade¶
Earthquake scenario cascades for cities. One scenario earthquake is carried from ground motion through building damage, casualties and shelter need, liquefaction, debris reach and road closure to the questions a city plans with: which neighbourhoods lose their route to a hospital, how accessibility changes, where relief depots should go and which neighbourhoods come first.
pip install quakecascade # core: NumPy, SciPy, pandas, Shapely, pyproj
pip install "quakecascade[demo,raster]" # + geopandas, osmnx, matplotlib, rasterio for the examples
flowchart LR
F[Fault + magnitude] --> GM[Ground motion<br/>ASB2014]
GM --> D[Damage<br/>Hazus 6.1]
D --> C[Casualties<br/>& shelter]
GM --> L[Liquefaction<br/>Zhu 2015]
D --> MC[Monte Carlo<br/>bands]
D --> DB[Debris reach<br/>& closure]
DB --> N[Road network<br/>before / after]
N --> A[Isolation<br/>& 2SFCA access]
N --> AL[Depots &<br/>capacity]
C --> R[TOPSIS<br/>ranking]
A --> R
GM --> P[Pipeline<br/>repairs]
-
Getting started
Install, then ground motion and damage for three sites in a dozen lines.
-
Tutorials
The whole chain on a synthetic town, a real area from open data, and how closures vary over many collapse draws.
-
How-to guides
Your own inventory, sensitivity to uncertain choices, external ground motion, QGIS export, reproducible reporting.
-
Methods
Every equation, coefficient and source, module by module, with the calibration limits that come with them.
-
Reference
Cascade inputs, every parameter, every output table and the full API.
-
Concepts
Why a missing value is never a zero, what each status code means and where the package stops.
A whole scenario in three lines¶
from quakecascade import cascade, datasets
town = datasets.synthetic_town(seed=0) # or your own inventory
result = cascade.run(cascade.inputs_from_town(town), params) # params: see the tutorial
print(result.summary()) # each sum with what it leaves out
params is a CascadeParams. Every planning choice that has no published value, such as the
debris spread factor, the road closure threshold or the vehicle clear width, must be stated
there. The tutorial shows a complete set.
Design rules¶
- Missing is never zero. A value that cannot be computed is
NaNwith a status code. A street with no data is never read as a safe street, and a neighbourhood with missing buildings is never ranked as if it were complete. - No silent defaults. Every coefficient cites its source (author, year, table or equation). A choice without a published value is a required argument.
- Counts sum, intensities do not. Aggregation follows the nature of each column, and a total
over incomplete rows is reported as a lower bound (
partial). - Metric coordinates. Distances are measured only in a projected metric CRS. Geographic and Mercator systems are refused, and inputs in different systems are not mixed.
- Reproducible runs. Every run returns a manifest with its parameters, input digests and a fingerprint, and the same run gives the same fingerprint on every platform.
More in Design principles.
Scope¶
The package is a scenario tool for planning, research and teaching. Its fragility, casualty and shelter tables are Hazus calibrations of US building practice. The ground-motion model was fitted to European and Middle Eastern records. Debris parameters are not calibrated against observations, so bracket them. It does not compute probabilistic seismic hazard, and it is no substitute for a site-specific engineering assessment. See Scope and limitations.
quakecascade re-implements, as open source, the methods of DİRİ, the earthquake
decision-support platform built for the İzmir Earthquake Master Plan. It contains none of DİRİ's
code and no data of İzmir Metropolitan Municipality or any other city. To cite it, see
How to cite.