Skip to content

Cascade outputs

cascade.run returns a CascadeResult. It keeps every stage's table as the module returned it, plus a per-building and a per-unit summary. A skipped stage leaves its fields as None, never as a table of zeros.

Attributes

Attribute Content
params the CascadeParams of the run
manifest parameters, input digests, package version, run_fingerprint (see reproducibility)
stages per stage: status (run / skipped), the reason for a skip, and counts (statuses, buildings without height, assumed heights, uncertain roads, units off the network, ...)
ground_motion per building: rjb_km, pga_g_p10/p50/p90, pgv_cms_*, vs30_capped, gm_envelope_flags, gm_status
damage per building and design level: exceedance pe_*, state probabilities p_none … p_complete, height_assumed, dmg_status
casualties per building and level: indoor, outdoor and total casualties at severities 1–4, cas_status
shelter per building and level: displaced_households, public_shelter, statuses
buildings summary per building at chain_level (see below)
liquefaction per building: liq_prob, liq_area_frac, cti_used, liq_clipped, liq_status (None without a DEM)
bands city totals per level, damage state and correlation mode: mean and p05–p95, band_status (None without mc_runs)
collapsed boolean per building: the sampled collapse realisation
debris_pressure per road: reaching buildings, p_any_collapse, expected_collapsed, expected_per_100m, debris_status
blockage per road: blocked_share, closed, blockage_status
navigable per road: passable, navigable_status
closed_edges ids of the roads closed by debris
travel per unit: snap_status and, per facility kind, the time to the nearest one before and after (*_pre_s, *_post_s) and the isolation category
isolation, population_by_status per facility kind: the isolation table, and residents per category
access per unit: 2SFCA access_pre, access_post, access_status
depots p-median: selected site ids, objective, greedy_objective, swaps (or a reason when nothing could be chosen)
capacity capacity balance: .sites, .demand and .summary (total_demand = served + unserved + unknown_capacity_demand)
ranking per unit: TOPSIS score, rank, d_plus, d_minus, topsis_status, criteria_status
pipes per unit: pipe km by material class, repair rate, repairs_low / repairs / repairs_high, leaks, breaks, repair_status
units summary per planning unit (see below)

The per-building table

result.buildings has one row per building at chain_level:

  • ground motion: vs30_m_s, rjb_km, pga_g_p50, pgv_cms_p50, gm_status;
  • damage: building_type, height_assumed, p_complete, p_extensive, dmg_status;
  • casualties and shelter: occupants, total_s3, total_s4, cas_status, displaced_households, displaced_status, public_shelter, shelter_status;
  • root_status: the first status other than computed along ground motion → damage → casualties → shelter;
  • with a DEM, liq_prob and liq_status; with roads, sampled_state (the drawn damage state).

The per-unit table

result.units has one row per planning unit:

  • population and the sums over its buildings: buildings, occupants, expected_complete, casualties_s3_s4, total_s4, displaced_households, public_shelter;
  • medians of pga_g_p50 and pgv_cms_p50;
  • n_missing_<column>: buildings that lack each summed value (a non-zero count makes that sum a lower bound); n_rows, n_computed, unit_status;
  • with roads and facilities: access and travel columns (access_*, *_pre_s, *_post_s, *_isolation, snap_status).

result.units.attrs["buildings_outside_units"] counts the buildings that belong to no unit.

summary()

A few headline numbers, each sum with the number of buildings it leaves out:

buildings, buildings_computed,
expected_complete, expected_complete_n_missing,
killed_s4, killed_s4_n_missing,
public_shelter, public_shelter_n_missing,
collapsed_in_realisation, collapsed_in_realisation_n_missing,
closed_edges, stages_skipped, run_fingerprint

realisations()

New in 0.2.0

cascade.realisations(inputs, params, seeds) returns a Realisations with:

  • runs: one row per draw;
  • roads: per road, closed_frequency and uncertain_frequency;
  • units: per unit, the share of draws in each isolation category.

See Many collapse draws.

GIS layers

New in 0.2.0

cascade.result_layers(result, inputs) joins these tables to their geometries, and cascade.export_geopackage(result, inputs, path) writes them to a GeoPackage. See Open the results in QGIS.