Skip to content

Cascade inputs

cascade.CascadeInputs holds everything spatial a run needs. Optional members switch stages on. Frames may be GeoDataFrames or plain DataFrames with a geometry column of Shapely objects. Every geometry is in crs, and a frame carrying a different CRS is refused.

Member Required Switches on Content
crs yes — a projected CRS in metres (not Mercator)
fault_trace yes ground motion surface trace: a LineString, MultiLineString, (M, 2) array, list of lines, GeoSeries or GeoDataFrame
fault no dipping-plane distance groundmotion.FaultGeometry: dip, dip azimuth, upper and lower depth, and a source. Without it RJB is the distance to the trace
buildings yes damage, casualties, shelter, debris see below
roads no debris, closure, network, isolation, access, allocation edge_id, geometry (noded centrelines), road_class, width_m (m, known for every road)
hospitals no isolation, 2SFCA access geometry, beds (NaN where unknown)
fire_stations no a second isolation target geometry
sites no p-median depots, capacity balance site_id, geometry, area_m2
units no isolation, access, allocation, ranking, per-unit tables unit_id, geometry, population
dem, dem_transform no liquefaction elevation grid (m, row 0 at the top) and (x_min, y_max, cell_size_m) in crs; see datasets.regrid_dem
pipes no pipeline repairs unit_id, length_km, material

Buildings

cascade.BUILDING_COLUMNS:

Column Unit Meaning Missing value gives
building_id — stable, unique id (required)
geometry — footprint polygon (required)
floors storeys height class (Hazus Table 5-1) default_height must be stated; the building is flagged height_assumed
height_m m debris reach and spread unknown_height_reach_m must be stated; roads it may reach read partial/no_height
building_type — Hazus type (C1, C1M, URM, W1, ...) no_building_type
occupancy — Hazus class or text, read by impact.occupancy_class no_occupancy
occupants people casualties, shelter no_occupants
dwelling_units — displaced households (0 for non-residential) no_units
vs30_m_s m/s site amplification no_vs30 in every table downstream
unit_id — planning unit counted as outside every unit

A building may carry other columns too: they are ignored.

Helpers

  • cascade.inputs_from_town(town) builds the inputs from datasets.synthetic_town.
  • datasets.fetch_osm, fetch_copernicus_dem, dem_grid, fetch_gem_faults and gem_fault_geometry fetch open data. A real area from open data shows how to assemble the inputs from them.