Skip to content

impact

Hazus 6.1 casualties, displaced households and public shelter.

quakecascade.impact

Earthquake consequences for people: casualties and shelter need.

Source: Hazus 6.1 Earthquake Model Technical Manual (FEMA 2024), Section 12 (casualties) and Section 13 (population displacement and shelter needs). The equations are Equations 12-2 to 12-6 and 13-1 to 13-5; the rates are the manual's tables, transcribed in PlanX engine/impact.py (same author) and ported here without change to the arithmetic or the tables.

Scale: a tract model run per building

Hazus works one Census tract at a time from tract-level aggregates. Here the equations run per building with that building's own occupancy and occupants. The arithmetic is unchanged and two consequences follow.

  • Table 12-2 distributes a tract's population component across occupancies. Per building only the two multipliers that decide how many occupants are inside and how many are outside and close to the building are kept; the secondary components (visitors, commuters on the street) have no building to belong to and are not modelled.
  • Section 13 is about dwellings. A building with no dwelling units contributes no shelter need.

Not modelled: the commuter path over bridges (Equation 12-1 and the bridge rows of Tables 12-6 and 12-7) and the street-population parameters PRFIL, VISIT and CDF, which need a bridge inventory and a street-population count.

The event tree

Figure 12-1 branches into collapse / no collapse at the Complete state only. Per severity::

rate =  P(slight)   * r_slight
      + P(moderate) * r_moderate
      + P(extensive)* r_extensive
      + P(complete) * ( (1 - c) * r_complete_intact + c * r_complete_collapsed )

with c the probability of collapse given Complete damage (Table 12-8). The outdoor tree drops the slight branch and does not split on collapse.

SEVERITIES module-attribute

SEVERITIES = ('s1', 's2', 's3', 's4')

Hazus injury severities (Table 12-1); s4 is "instantaneously killed or mortally injured".

CASUALTY_BUILDING_TYPES module-attribute

CASUALTY_BUILDING_TYPES = ...

The 36 specific building types the Section 12 casualty tables are keyed by, in the manual's own order. This is Hazus's type list, not the shorter one the fragility tables in Section 5 use - every type quakecascade.fragility can produce is present here, and tests/test_impact.py asserts that containment.

INDOOR_CASUALTY_RATES module-attribute

INDOOR_CASUALTY_RATES = ...

in a SLIGHT structural damage state expected to be injured at each severity. Uniform across building types: at low damage levels casualties come from nonstructural components and contents, which do not vary much with structural type (manual p. 12-9).

INDOOR_CASUALTY_RATES_MODERATE module-attribute

INDOOR_CASUALTY_RATES_MODERATE = ...

occupants. Note URML/URMM carry the nonzero Severity 3 and 4 rates the manual attributes to falling unreinforced masonry.

INDOOR_CASUALTY_RATES_EXTENSIVE module-attribute

INDOOR_CASUALTY_RATES_EXTENSIVE = ...

occupants.

INDOOR_CASUALTY_RATES_COMPLETE_INTACT module-attribute

INDOOR_CASUALTY_RATES_COMPLETE_INTACT = ...

percent of indoor occupants. Hazus assumes only a fraction of the Complete state actually collapses; COLLAPSE_RATE_GIVEN_COMPLETE below is that fraction, and it splits the Complete probability between this table and the next.

INDOOR_CASUALTY_RATES_COMPLETE_COLLAPSED module-attribute

INDOOR_CASUALTY_RATES_COMPLETE_COLLAPSED = ...

percent of indoor occupants. These are the rates the event tree calls P_killed | Collapse (Equation 12-3).

OUTDOOR_CASUALTY_RATES_MODERATE module-attribute

OUTDOOR_CASUALTY_RATES_MODERATE = ...

people outside and close to the building. Slight damage generates no outdoor casualties at all (manual p. 12-18), which is why there is no table for it.

OUTDOOR_CASUALTY_RATES_EXTENSIVE module-attribute

OUTDOOR_CASUALTY_RATES_EXTENSIVE = ...

people outside and close to the building.

OUTDOOR_CASUALTY_RATES_COMPLETE module-attribute

OUTDOOR_CASUALTY_RATES_COMPLETE = ...

people outside and close to the building. The outdoor event tree does NOT branch on collapse - falling material hurts people outside whether or not floors came down (manual p. 12-18).

COLLAPSE_RATE_GIVEN_COMPLETE module-attribute

COLLAPSE_RATE_GIVEN_COMPLETE = ...

Table 12-8, manual p. 12-16. Probability that a building in the Complete damage state has actually collapsed, by specific building type. Fraction, not percent. The manual's footnotes point back to Section 5 for the derivation.

SCENARIO_TIMES module-attribute

SCENARIO_TIMES = (
    ("2am", "2:00 a.m. - night"),
    ("2pm", "2:00 p.m. - daytime"),
    ("5pm", "5:00 p.m. - commute time"),
)

Scenario times Hazus computes, as (key, label). The keys index the table below; the labels are what the algorithm shows.

OCCUPANCY_CLASSES module-attribute

OCCUPANCY_CLASSES = ...

Hazus's five building occupancy classes, as the algorithm offers them.

OCCUPANCY_CLASSES_KEYS module-attribute

OCCUPANCY_CLASSES_KEYS = tuple(
    name for name, _label in OCCUPANCY_CLASSES
)

Occupancy class names, in table order.

POPULATION_DISTRIBUTION module-attribute

POPULATION_DISTRIBUTION = ...

Table 12-2 (manual p. 12-5), reduced to the two numbers that matter for a single building: the share of the building's occupant count that is inside, and the share that is outside and close to it. The manual writes each entry as two multipliers - the first splits a population component between indoors and outdoors, the second is the fraction of that component present in the occupancy at all - and the products below are written as the manual prints them rather than evaluated, so a reader can check them against the page.

The primary component of each row is used: the residential population for residential (NRES at 2 a.m.; at 2 p.m. the table applies 0.75 to the daytime residential population DRES, the residents not at work or school), COMW for commercial, INDW for industrial, HOTEL for hotels, GRADE for educational. The multipliers are applied to the occupant count the caller gives, so with night-time resident counts the 2 p.m. residential occupancy is an upper bound; give daytime resident counts to follow the manual. The rows also carry residents, hotel guests and visitors inside commercial premises and a commuting population on the street; those are tract-level mixing with no building to belong to in a per-building model, and are documented as absent in the module docstring.

Educational has no entry at all for the 2 a.m. scenario - the table's nighttime column is blank - so a school holds nobody at 2 a.m. Its 5 p.m. entry covers the college population only, the grade-school population having gone home; the grade-school entry at 2 p.m. is the one used for the daytime scenario.

DISPLACED_HOUSEHOLD_WEIGHTS module-attribute

DISPLACED_HOUSEHOLD_WEIGHTS = ...

Table 13-1 (manual p. 13-3), default displaced-household damage-state weighting factors. Single-family Complete and multi-family Extensive and Complete are the states that displace a household; the manual's reasoning is that a single-family occupant tolerates most damage, while a renter in a moderately or extensively damaged block may read it as uninhabitable.

SHELTER_CATEGORY_WEIGHTS module-attribute

SHELTER_CATEGORY_WEIGHTS = {
    "income": 0.73,
    "ethnicity": 0.27,
    "ownership": 0.0,
    "age": 0.0,
}

Table 13-2 (manual p. 13-6), shelter category weighting factors. They sum to 1.00, which is what makes a neutral run come out at exactly 1.0.

SHELTER_MODIFICATION_FACTORS module-attribute

SHELTER_MODIFICATION_FACTORS = ...

Table 13-3 (manual p. 13-6), shelter modification factors: the share of each sub-category that seeks public shelter, from the Red Cross/GWU work Hazus cites. Quoted so that a planner can see what the methodology's own US-calibrated answer looks like, and so the manual's numbers are in the code rather than only in a document. They are NOT the defaults - see below.

NEUTRAL_SHELTER_MODIFIER module-attribute

NEUTRAL_SHELTER_MODIFIER = 1.0

The modification factor a run with no local demographic data uses.

Exactly 1.0, and that is the point: Hazus's Equation 13-5 is

alpha = IW*IM + EW*EM + OW*OM + AW*AM

with the shares within each category summing to one. At a neutral factor every category's share-weighted mean is 1.0, so alpha collapses to IW + EW + OW + AW = 1.0 whatever the shares are - every displaced person seeks public shelter. That is an upper bound, not Hazus's expectation: Hazus's own Table 13-3 factors run from 0.13 to 0.62 and pull a real estimate well below the neutral one. A planner who has income, ethnicity, tenure or age distribution for the study area should put the category's share-weighted mean factor in and get a filtered answer; a planner who does not gets an unfiltered one, which is the honest outcome, not an American one.

occupancy_class

occupancy_class(value)

Hazus occupancy class for a text value, or None if unrecognised.

The tool reads occupancy from a field when one is given, because a city is not one occupancy class. Returning None rather than guessing lets the caller count the unmatched features and say so, instead of silently treating a hospital as a house.

fill_undamaged

fill_undamaged(probabilities)

Complete a damage distribution with the undamaged share it implies.

A fragility run writes four columns - slight, moderate, extensive, complete - and the share of buildings that are simply not damaged is their complement. The event tree indexes the distribution by state, so a caller that hands over only the four damaged states has no none to read; what it has is arithmetic that belongs in one place rather than in each caller.

The complement is clipped at zero, so a row whose damaged states already sum above 1.0 gets no undamaged share instead of a negative one. That row is still a mistake, and the caller that reads these columns warns about it - this function is not a place to hide it.

A distribution that already carries none is returned as it is, so a caller may hand over either shape.

indoor_rates

indoor_rates(probabilities, labels)

Indoor casualty rate per severity, per building.

Shape (..., 4): severity 1, 2, 3, 4 in Hazus's order (Table 12-1 - the fourth is "instantaneously killed or mortally injured"). Each value is the probability that one occupant of the building is hurt at that severity, so multiplying by the number of occupants indoors gives expected casualties.

outdoor_rates

outdoor_rates(probabilities, labels)

Outdoor casualty rate per severity, per building. Shape (..., 4).

Falling material - parapets, infill, glazing, signage - hurts people on the pavement beside the building. Slight damage contributes nothing: the manual drops that branch from the outdoor tree entirely, and there is no table for it. Complete damage is not split by collapse here either, so the Complete probability enters once.

population_distribution

population_distribution(occupancy, time_of_day)

(indoor, outdoor) shares of a building's occupant count, Table 12-2.

occupancy is a sequence of Hazus occupancy class names and time_of_day one of the keys of SCENARIO_TIMES. Both returned arrays match the input length.

occupants_from_floor_area

occupants_from_floor_area(areas, floors, area_per_occupant)

Occupants of a building from its footprint and storey count.

Not a Hazus relationship. Hazus's area-per-occupant figures live in the Hazus Inventory Technical Manual, which this module does not carry, so the divisor is the caller's, a labelled screening assumption with no default. Use a population field instead whenever one exists.

shelter_alpha

shelter_alpha(weights=None, modifiers=None)

The constant alpha of Equations 13-4 and 13-5.

weights is (income, ethnicity, ownership, age) - Table 13-2's IW, EW, OW, AW - and modifiers is the matching set of category factors. The manual's expansion of alpha over five income classes, five ethnicities, two tenure classes and three age classes is a share-weighted mean inside each category, collapsed here to the mean itself so that the tool asks for four numbers instead of fifteen. With neutral modifiers the result is exactly 1.0 for any weights that sum to 1.0.

displaced_households

displaced_households(
    probabilities, units, occupancy_rate=1.0, weights=None
)

Displaced households per building, Equations 13-1 to 13-3.

weights replaces DISPLACED_HOUSEHOLD_WEIGHTS (Table 13-1) and must give all six: single_moderate, single_extensive, single_complete, multi_moderate, multi_extensive and multi_complete. Every weight enters Equations 13-1 and 13-2, including those the table sets to zero.

units is the building's dwelling units and occupancy_rate the manual's #HH / (#SFU + #MFU) - households per dwelling unit, 1.0 when every unit is lived in. A building of one unit is treated as single-family and a building of two or more as multi-family, which is how Hazus splits its residential occupancy classes (RES1 against RES3).

A non-residential building has no dwelling units, so it passes zero and drops out of the sum: the equations still hold, they just have nothing to count.

shelter_need

shelter_need(
    displaced,
    occupants,
    units,
    occupancy_rate=1.0,
    alpha=1.0,
)

People needing public short-term shelter, Equations 13-4 and 13-5.

#DH * (POP / #HH) * alpha per building, with POP the people in the building and #HH its households. The double sum of Equation 13-4 reduces to this product because the category shares each sum to one; the argument is in shelter_alpha.

casualties

casualties(
    probabilities,
    labels=None,
    occupants=None,
    occupancy=None,
    time_of_day=None,
)

Expected casualties per severity, indoors and out (Hazus 6.1 Section 12).

Two call forms.

  • casualties(probabilities, labels, occupants, occupancy, time_of_day) with a dict of state arrays (keys of DAMAGE_STATES) returns {"indoor", "outdoor", "total"}, each (..., 4) in people.
  • casualties(damage_frame, occupants=..., occupancy=..., time_of_day=...) with the frame from quakecascade.fragility.damage returns a DataFrame with indoor_s1 .. total_s4 and cas_status. Rows whose damage, occupancy or occupant count is missing carry NaN and a status (no_pga, no_occupancy, no_occupants ...), never 0.

occupants is each building's occupant count when occupied at all; Table 12-2 scales it by occupancy (a Hazus class name or free text resolved by occupancy_class) and time_of_day ("2am", "2pm" or "5pm"). No argument has a default: the scenario time is the analyst's choice. Every severity count is bounded by the people the scenario time puts in or beside the building.

shelter

shelter(
    probabilities,
    occupants=None,
    units=None,
    occupancy_rate=1.0,
    alpha=1.0,
)

Both Section 13 outputs: displaced households and public shelter need.

Two call forms, as for casualties.

  • shelter(probabilities, occupants, units, occupancy_rate, alpha) with a dict of state arrays returns {"displaced_households", "public_shelter"}.
  • shelter(damage_frame, occupants=..., units=..., ...) returns a DataFrame with displaced_households, displaced_status, public_shelter and shelter_status. Missing dwelling units give no_units (both outputs NaN); missing occupants give no_occupants on the shelter count only.

occupancy_rate (households per dwelling unit) defaults to 1.0, every unit lived in; alpha (Equation 13-5) defaults to 1.0, the neutral modifier, which makes the shelter count an upper bound (see shelter_alpha).