Casualties and shelter need (Hazus 6.1 Sections 12–13)¶
Module: quakecascade.impact
What it computes¶
- Casualties (Section 12) are expected people at each of the four Hazus injury severities, indoors and outdoors, per building. Severity 1 is minor injury and severity 4 is killed or mortally injured (Table 12-1). They come from the damage-state probabilities, the building type, the occupant count, the occupancy class and the scenario time (2 a.m., 2 p.m. or 5 p.m.).
- Displaced households and public shelter need (Section 13) come from the extensive and complete damage probabilities and the building's dwelling units.
casualties and shelter accept two kinds of input:
- A dict of state arrays. This is the PlanX kernel form and returns a dict of arrays.
- The DataFrame from
fragility.damage. This returns a DataFrame with status columns:cas_status,displaced_statusandshelter_status.
The kernels indoor_rates, outdoor_rates, population_distribution, displaced_households, shelter_need and shelter_alpha are public. So are fill_undamaged (it adds the none share to a four-state distribution), occupancy_class (it maps free text to a Hazus class) and occupants_from_floor_area.
Equations¶
The indoor event tree (Figure 12-1, Equations 12-2 to 12-6) for severity \(k\):
Here \(c\) is the probability of collapse given complete damage (Table 12-8). The rates \(r\) are the percentages in Tables 12-3 to 12-7, divided by 100. The outdoor tree drops the slight branch and does not split on collapse (Tables 12-9 to 12-11):
Expected casualties for a building with \(N\) occupants, where \(f_{in}\) and \(f_{out}\) are the indoor and outdoor shares of Table 12-2 for its occupancy and the scenario time:
Displaced households (Equations 13-1 to 13-3, weights from Table 13-1). A building with one dwelling unit is single-family; one with two or more is multi-family:
Table 13-1 sets \(w_{SF,mo} = w_{SF,ex} = w_{MF,mo} = 0\); all six weights enter the equation, and
displaced_households(..., weights=...) accepts a full replacement table.
\(U\) is the number of dwelling units and \(h\) the households per unit. Public shelter need (Equations 13-4 and 13-5):
Parameters and tables¶
| Item | Value | Source |
|---|---|---|
| Indoor rates, slight / moderate / extensive | Tables 12-3, 12-4, 12-5 (percent) | FEMA (2024) |
| Indoor rates, complete without / with collapse | Tables 12-6, 12-7 | FEMA (2024) |
| Collapse given complete \(c\) | Table 12-8 (fraction) | FEMA (2024) |
| Outdoor rates, moderate / extensive / complete | Tables 12-9, 12-10, 12-11 | FEMA (2024) |
| Indoor/outdoor shares \(f_{in}, f_{out}\) | Table 12-2, primary component of each occupancy row | FEMA (2024) |
| \(w_{SF,co}=1.0\), \(w_{MF,ex}=0.9\), \(w_{MF,co}=1.0\), the other three 0 | Table 13-1 | FEMA (2024) |
| \(IW, EW, OW, AW = 0.73, 0.27, 0, 0\) | Table 13-2 | FEMA (2024) |
| Modification factors (reference only) | Table 13-3 | FEMA (2024) |
time_of_day, occupants, occupancy |
required | Your scenario |
occupancy_rate \(h\) |
1.0 (every unit lived in) | Upper bound; replace it with local data |
alpha |
1.0, the neutral modifier. Every displaced person seeks public shelter, so the result is an upper bound | Eq. 13-5 with neutral factors |
area_per_occupant in occupants_from_floor_area |
required | Your assumption |
Status codes¶
cas_status carries the damage status first (for example no_pga), then no_occupancy for an occupancy text that cannot be resolved and no_occupants for a missing occupant count. For shelter, no_units blanks both outputs and no_occupants blanks only the public shelter count. Every row that is not computed carries NaN, never 0.
Calibration and applicability¶
- Hazus runs on Census tracts. Here the equations run per building, so the secondary population components of Table 12-2 (visitors, commuters on the street) and the bridge commuter path (Equation 12-1) are not modelled.
- Table 12-2 applies its 2 p.m. residential multiplier to the daytime residential population (residents not at work or school). The multipliers are applied to the occupant count you give, so with night-time resident counts the 2 p.m. residential casualties are an upper bound; give daytime resident counts to follow the manual.
occupancy_classmatches whole words or word prefixes ("restaurant" is not residential, "indoor" is not industrial) and the Hazus specific occupancy codes (RES1–RES6 with RES4 as hotels, COM, IND, EDU). Anything else returnsNoneand the row readsno_occupancy, so it is counted, not guessed.- The rates come from US data. Collapse and casualty rates for non-ductile stock elsewhere can differ by an order of magnitude, so treat the output as a scenario comparison.
- With neutral \(\alpha\) the shelter count is an upper bound. The Table 13-3 factors (0.13–0.62) are US-specific and are not applied by default.
- A building with no dwelling units has no displaced households.
Example¶
import numpy as np
import pandas as pd
import quakecascade.fragility as fr
import quakecascade.impact as im
pga = pd.Series([0.45, 0.30, np.nan, 0.62], index=["b1", "b2", "b3", "b4"])
dmg = fr.damage(pga, "C1", floors=[2, 5, 4, np.nan], design_levels=("pre", "moderate"))
cas = im.casualties(dmg, occupants=[12, 40, 30, 25], occupancy="Residential", time_of_day="2am")
print(cas.groupby("design_level")["total_s4"].sum(min_count=1))
sh = im.shelter(dmg, occupants=[12, 40, 30, 25], units=[1, 10, 8, 6])
print(sh[["building_id", "design_level", "displaced_households", "public_shelter", "shelter_status"]])
When you aggregate, sum the counts with contract.aggregate(..., EXTENSIVE). Its min_count=1 keeps a zone where every building is missing at NaN.
References¶
- FEMA (2024). Hazus 6.1 Earthquake Model Technical Manual, Sections 12 and 13. Federal Emergency Management Agency. https://www.fema.gov/flood-maps/tools-resources/flood-map-products/hazus/user-technical-manuals (US federal work, public domain; no DOI.)