Skip to content

Liquefaction screening and terrain hydrology

Modules: quakecascade.liquefaction, quakecascade.hydro

What it computes

Two independent liquefaction models, plus the terrain kernels the first one needs.

  • Zhu et al. (2015) global geospatial model. A logistic regression giving the probability of liquefaction at a site from peak ground acceleration (PGA), moment magnitude, the compound topographic index (CTI) and Vs30. zhu2015 is the array entry point and returns a probability and a status per element. zhu2015_probability is the scalar form and also returns every intermediate term. liquefaction_frame wraps the array form into a table.
  • Hazus 6.1 Section 4.2.2.1 (FEMA 2024). A susceptibility-category model for map units that have already been classified into the six Hazus categories. It gives a probability and an expected settlement (hazus_probability).
  • Vs30 from topographic slope, the USGS global Vs30 method. For sites without a measured Vs30, the slope–Vs30 bins of Allen & Wald (2009, active tectonic regions) and Wald & Allen (2007, stable continents), interpolated in log–log space as in the USGS code grad2vs30.c.
  • Terrain hydrology (hydro). Priority-flood depression filling, D8 steepest descent, D8 flow accumulation, slope and CTI on a NumPy grid with a cell size in metres.

Equations

Zhu et al. (2015)

\[ X = c_0 + c_1 \ln\!\left(\frac{PGA \cdot M_w^{2.56}}{10^{2.24}}\right) + c_2\,CTI + c_3 \ln V_{S30} \]
\[ P = \frac{1}{1 + e^{-X}} = \tfrac{1}{2}\left(1 + \tanh\tfrac{X}{2}\right) \]

The term \(PGA \cdot M_w^{2.56}/10^{2.24}\) is the magnitude-weighted PGA of Youd et al. (2001): their magnitude scaling factor \(MSF = 10^{2.24}/M_w^{2.56}\) (their Eq. 24) appears as a divisor. The magnitude term sits inside the logarithm, so \(\partial X/\partial \ln M_w = 2.56\,c_1 = 5.29\). Writing it as \(c_1 \ln PGA + 2.56 \ln M_w\) gives a smooth, monotone model that is wrong by a factor of two in magnitude sensitivity. The tests pin this derivative.

PGA is in g. The source implementation clips PGA on a ShakeMap layer in %g. Applying its /100 to a field in g would move \(X\) by \(c_1 \ln 100 = 9.52\).

Before the logit, inputs are clipped to the calibration range: \(PGA \in [0, 2.7]\) g and \(CTI \in [0, 15]\). The CTI clip is part of the model's definition (gfail clips the same way), so a CTI-clipped row stays computed and liq_clipped names cti. A PGA above 2.7 g is outside the range the coefficients were fitted on: the row keeps its value and gets the status outside_envelope. The same status marks the screening limits of the USGS Ground Failure implementation (gfail zhu_2015.ini: PGA below 2 %g, Vs30 above 620 m/s), where gfail reports no probability at all.

The areal reading (proportion of area liquefied) is reported separately:

\[ \text{coverage} = 0.81\,P \]

This is the correction of Zhu et al. (2017), who found that the 2015 model over-predicts the affected area by about 19 %. It is never multiplied into the site probability.

Hazus 6.1 Equation 4-9

\[ P[\text{Liq}] = \frac{P[\text{Liq} \mid PGA = a]}{K_M\,K_W}\,P_{ml} \]
\[ P[\text{Liq} \mid PGA = a] = \operatorname{clip}(m\,a + b,\;0,\;1) \quad\text{(Table 4-11)} \]
\[ K_M = 0.0027 M^3 - 0.0267 M^2 - 0.2055 M + 2.9188 \quad\text{(Eq. 4-10)} \]
\[ K_W = 0.022\,d_w + 0.93,\qquad d_w \text{ in feet} \quad\text{(Eq. 4-11)} \]

Expected settlement = \(P[\text{Liq}] \times\) the Table 4-13 amplitude (inches). Both polynomials are applied as printed: \(K_M(7.5) = 1.0147\) and \(K_W(5\,\text{ft}) = 1.04\), not 1. Groundwater depth is passed in metres and converted inside the function.

Compound topographic index

\[ CTI = \ln\!\left(\frac{a}{\max(\tan\beta,\ 0.001)}\right),\qquad a = \frac{A\,w}{1000}\ \text{(km)} \]

\(A\) is the D8 flow accumulation in cells (each cell counts itself) and \(w\) is the cell width in metres. The specific catchment area is the upstream area \(A w^2\) divided by a contour width of one cell, \(w\), here expressed in kilometres. \(\tan\beta\) is the D8 steepest-descent gradient, \(\max_k (z_0 - z_k)/(d_k w)\) with \(d_k \in \{1, \sqrt 2\}\).

These units are those of the layer the model was fitted on. Zhu et al. (2015) and USGS gfail use the HYDRO1k CTI, \(\ln((FA + 1)/\tan(\text{slope}))\) with the flow accumulation \(FA\) counted in 1-km cells (ISLSCP II HYDRO1k, Eq. 1), and with \(\tan(\text{slope}) = 0.001\) substituted where the slope is zero (HYDRO1k README, Sec. 3.2.5). At a 1 km cell size \(a = A = FA + 1\), so hydro.cti reproduces that layer. At other cell sizes the same units apply, and the 0.001 floor keeps every cell within the slope range the calibration data could show. Every cell with data therefore gets a finite index; only NaN (outside the DEM) is missing.

hydro.cti(..., convention="metres") gives the textbook index of Beven & Kirkby (1979), with \(a\) in metres and no floor (\(+\infty\) on flat cells). It is \(\ln 1000 = 6.91\) higher, which adds \(0.355 \times 6.91 = 2.45\) to the Zhu logit, so it must not be fed to the Zhu model.

Vs30 from slope

This is the computation of the USGS global Vs30 map (grad2vs30.c in the usgs/earthquake-global_vs30 repository). For slope \(s\) (m/m) inside the bin \([s_0, s_1] \to [V_0, V_1]\):

\[ \ln V_{S30} = \ln V_0 + (\ln V_1 - \ln V_0)\,\frac{\ln s - \ln s_0}{\ln s_1 - \ln s_0} \]

The bins for active tectonic regions are the "modified 30 arc sec" column of Allen & Wald (2009), Table 1. The bins for stable continents are those of Wald & Allen (2007), which are the same values as Allen & Wald (2007, OFR 2007-1357) Table 2. A slope below the first bin is extrapolated from that bin and held at 180 m/s. A slope above the last bin is extrapolated from that bin and capped at 900 m/s. Both cases are flagged as clamped. A NaN or negative slope (for example the gradient hydro.cti returns on nodata cells) gives a NaN Vs30.

Vs30 (m/s) active, slope (m/m) stable, slope (m/m)
180–240 3.0×10⁻⁴ – 3.5×10⁻³ 2.0×10⁻⁵ – 2.0×10⁻³
240–300 3.5×10⁻³ – 0.010 2.0×10⁻³ – 4.0×10⁻³
300–360 0.010 – 0.018 4.0×10⁻³ – 7.2×10⁻³
360–490 0.018 – 0.050 7.2×10⁻³ – 0.013
490–620 0.050 – 0.10 0.013 – 0.018
620–760 0.10 – 0.14 0.018 – 0.025

Parameters and coefficients

Symbol Value Unit Source
\(c_0\) 24.10 - Zhu et al. (2015) Table 3, global model; USGS gfail zhu_2015.py; Geyin et al. (2020) Table 3 (GGM1)
\(c_1\) 2.067 - same
\(c_2\) 0.355 - same
\(c_3\) -4.784 - gfail zhu_2015.py. Printed as 0.4784 in Geyin et al. (2020); with 0.4784 every site returns \(P \approx 1\)
magnitude exponent / divisor 2.56 / \(10^{2.24}\) - Youd et al. (2001) Eq. 24
PGA clip [0, 2.7] g gfail (0–270 %g)
CTI clip [0, 15] - gfail
CTI units \(a\) in km, \(\tan\beta \ge 0.001\) - HYDRO1k README Sec. 3.2.5; ISLSCP II HYDRO1k Eq. 1
screening limits PGA ≥ 0.02 g, Vs30 ≤ 620 m/s g, m/s gfail zhu_2015.ini (minpga, vs30max); outside them outside_envelope
coverage factor 0.81 - Zhu et al. (2017); gfail calculate_coverage
model input scale ~1000 m USGS Ground Failure background page (CTI from HYDRO1k)
resolution tolerance ×2 - package policy (not published)
\(P_{ml}\) 0.25 / 0.20 / 0.10 / 0.05 / 0.02 / 0 - Hazus 6.1 Table 4-10
\((m, b)\) (9.09, -0.82) … (4.16, -1.08), None = 0 1/g, - Hazus 6.1 Table 4-11
PGA(t) 0.09 / 0.12 / 0.15 / 0.21 / 0.26 g Hazus 6.1 Table 4-12
settlement amplitude 12 / 6 / 2 / 1 / 0 / 0 inch Hazus 6.1 Table 4-13
slope–Vs30 bins active and stable columns (table above) m/m, m/s Allen & Wald (2009) Table 1 (active, modified 30 arc sec); Wald & Allen (2007) (stable); interpolation and 180/900 m/s caps of USGS grad2vs30.c
tectonic setting "active" or "stable" - required, no default

Status codes

zhu2015 and liquefaction_frame return one status per element:

Status Meaning Value
computed inputs inside the fitting range; CTI clipped to [0, 15] is still computed, with liq_clipped = 'cti' probability
outside_envelope PGA clipped to 2.7 g, or PGA below 0.02 g, or Vs30 above 620 m/s probability, read as extrapolation
no_pga PGA is NaN, infinite, zero or negative NaN
no_cti CTI is NaN NaN
no_vs30 Vs30 is NaN, infinite, zero or negative NaN

Missing inputs are checked in the order PGA, CTI, Vs30. A zero PGA is not "no hazard": the model takes \(\ln PGA\), so the value stays NaN. Magnitude is a scenario parameter, and a non-positive or non-finite magnitude raises ValueError.

Applicability and caveats

  • Scale. Zhu et al. (2015) was fitted on ~1 km inputs. CTI is not scale-free, because both \(a\) and \(\tan\beta\) change with cell size. Block-average the DEM to about 1 km before calling hydro.cti, and pass cti_cell_size_m to liquefaction_frame so that runs far from that scale carry a warning in frame.attrs["warnings"].
  • Units. The cell size must be in metres. A DEM described in feet raises CTI by \(\ln 3.28084 = 1.19\) everywhere, which is about 0.42 logit units.
  • Slope definition. hydro.slope is the D8 steepest-descent gradient, the same one CTI uses. It is not a 3×3 Horn fit. The slope–Vs30 bins were derived from 30 arc-second gradients (Wald & Allen 2007; Allen & Wald 2009), so block-average the DEM to about 30 arc-seconds first.
  • Calibration. Zhu (2015) is a global regression. The Hazus tables are US regional judgments, and the manual gives a factor of ½–2 uncertainty on the settlement amplitudes. Both models are regional screening tools, not site investigations.
  • Hazus categories. Only the six names are accepted (case and , _ - separators ignored). normalise_category returns None for anything else, including "medium", "VH" and "1", so an unrecognised map unit cannot turn silently into zero hazard.
  • Depression filling. hydro.cti does not fill pits by default (fill=False), which matches the PlanX engine. Filled pits become flats, which take \(\tan\beta = 0.001\).

Example

import numpy as np
from quakecascade import hydro, liquefaction as liq

# A 1 km DEM: a hillside draining south onto a flat shore row.
dem = np.array([[60.0, 55.0, 50.0],
                [30.0, 28.0, 26.0],
                [ 5.0,  4.0,  3.0],
                [ 1.0,  1.0,  1.0]])
cti, gradient = hydro.cti(dem, cell_size_m=1000.0)
vs30, clamped = liq.vs30_from_slope_array(gradient, "active")
frame = liq.liquefaction_frame(pga_g=0.35, magnitude=7.0, cti=cti.ravel(),
                               vs30=vs30.ravel(), cti_cell_size_m=1000.0)
print(frame[["cti_used", "liq_prob", "liq_area_frac", "liq_status"]].round(3))
# the flat shore row: cti_used 8.294 = ln(4 / 0.001), liq_prob 0.418, status computed

print(liq.hazus_probability("High", 0.35, 7.0, depth_m=1.5)["probability"])  # 0.1754...

References

  • Allen, T. I., & Wald, D. J. (2007). Topographic slope as a proxy for seismic site-conditions (VS30) and amplification around the globe. USGS Open-File Report 2007-1357. doi:10.3133/ofr20071357
  • Allen, T. I., & Wald, D. J. (2009). On the use of high-resolution topographic data as a proxy for seismic site conditions (VS30). Bulletin of the Seismological Society of America, 99(2A), 935–943. doi:10.1785/0120080255
  • Wald, D. J., & Allen, T. I. (2007). Topographic slope as a proxy for seismic site conditions and amplification. Bulletin of the Seismological Society of America, 97(5), 1379–1395. doi:10.1785/0120060267
  • U.S. Geological Survey. earthquake-global_vs30, src/grad2vs30.c (public domain, CC0 1.0). https://github.com/usgs/earthquake-global_vs30
  • Beven, K. J., & Kirkby, M. J. (1979). A physically based, variable contributing area model of basin hydrology. Hydrological Sciences Bulletin, 24(1), 43–69. doi:10.1080/02626667909491834
  • FEMA (2024). Hazus Earthquake Model Technical Manual, Hazus 6.1, Section 4.2.2.1, Tables 4-10 to 4-13, Equations 4-9 to 4-11. Federal Emergency Management Agency.
  • Verdin, K. L., et al. (2011). ISLSCP II HYDRO1k Elevation-derived Products. ORNL DAAC. doi:10.3334/ORNLDAAC/1007 (with the USGS HYDRO1k README, Sec. 3.2.3 and 3.2.5)
  • Geyin, M., Baird, A. J., & Maurer, B. W. (2020). Field assessment of liquefaction prediction models based on geotechnical versus geospatial data, with lessons for each. Earthquake Spectra, 36(3), 1386–1411. doi:10.1177/8755293019899951
  • O'Callaghan, J. F., & Mark, D. M. (1984). The extraction of drainage networks from digital elevation data. Computer Vision, Graphics, and Image Processing, 28(3), 323–344. doi:10.1016/S0734-189X(84)80011-0
  • Wang, L., & Liu, H. (2006). An efficient method for identifying and filling surface depressions in digital elevation models for hydrologic analysis and modelling. International Journal of Geographical Information Science, 20(2), 193–213. doi:10.1080/13658810500433453
  • Youd, T. L., et al. (2001). Liquefaction resistance of soils: summary report from the 1996 NCEER and 1998 NCEER/NSF workshops. Journal of Geotechnical and Geoenvironmental Engineering, 127(10), 817–833. doi:10.1061/(ASCE)1090-0241(2001)127:10(817)
  • Zhu, J., Daley, D., Baise, L. G., Thompson, E. M., Wald, D. J., & Knudsen, K. L. (2015). A geospatial liquefaction model for rapid response and loss estimation. Earthquake Spectra, 31(3), 1813–1837. doi:10.1193/121912EQS353M
  • Zhu, J., Baise, L. G., & Thompson, E. M. (2017). An updated geospatial liquefaction model for global application. Bulletin of the Seismological Society of America, 107(3), 1365–1385. doi:10.1785/0120160198
  • USGS Ground Failure product, background: https://earthquake.usgs.gov/data/ground-failure/background.php; USGS gfail (groundfailure) software, CC0.