Status codes¶
Every value column of every table has a status column beside it. A value is a number only when its
status says it could be computed. Otherwise it is NaN, and the status says why. The
vocabulary is shared by all modules: four base codes, no_<input> codes for missing inputs, and a
few codes specific to a stage. contract.is_valid_status(code) accepts exactly these, and
contract.check_status_consistency(values, status) lists the rows where a value and its status
disagree.
Base codes¶
| Code | Meaning | Value |
|---|---|---|
computed |
computed from complete inputs | the value |
partial |
some contributing inputs are missing | a bound: a lower bound for sums; for nearest times, an upper bound |
empty |
there is nothing to compute on (a unit with no buildings, a road no building reaches) | a true zero |
outside_envelope |
an input lies outside the range the model was fitted on | kept, to be read as an extrapolation |
no_<input> means a required input is missing; the value is NaN. The codes below say which
input.
By stage¶
| Table · column | Codes |
|---|---|
ground motion · gm_status |
no_location (site coordinates not finite), no_vs30 (Vs30 missing, zero or negative), outside_envelope (magnitude, distance or Vs30 outside the ASB2014 range) |
damage · dmg_status |
no_building_type, no_pga, no_design_level (no level for this building), no_fragility_curve (Hazus does not tabulate the type at that level) |
casualties · cas_status |
the damage code first, then no_occupancy (occupancy text not recognised), no_occupants |
shelter · displaced_status, shelter_status |
the damage code first, then no_units (dwelling units missing), no_occupants |
buildings · root_status |
the first code other than computed along ground motion → damage → casualties → shelter |
liquefaction · liq_status |
no_pga, no_cti, no_vs30, outside_envelope (PGA above 2.7 g, below 2 %g, or Vs30 above 620 m/s) |
Monte Carlo · band_status |
computed, partial (some buildings have no damage probabilities), empty (no building at that level) |
debris pressure · debris_status |
partial, no_damage (no reaching building has a probability), no_height (only buildings of unknown height may reach the road), empty |
corridor blockage · blockage_status |
partial (debris of unknown extent may add to the known share), no_height, no_damage (only debris of unknown extent touches it), no_width |
navigability · navigable_status |
partial (passability is an upper bound), no_width, narrower_than_clear_width (impassable before any debris, so not an event closure) |
network edges · edge_status |
no_geometry, no_cost (unknown road class or cost) |
snapping · snap_status |
no_node (farther than max_snap_m from the network), no_xy (coordinates not finite) |
nearest facility · nearest_status |
partial (some targets unknown: the time is an upper bound), no_travel_time, no_node |
isolation · isolation_status |
newly_cut_off, worse, same, improved, always_cut_off, or no_pre_time / no_post_time when a time is unknown |
2SFCA · access_status |
partial, no_travel_time |
2SFCA facilities · ratio_status |
no_supply, no_travel_time, no_demand, empty (nobody within the catchment: the ratio is undefined), partial |
capacity sites · site_status |
partial (receives demand diverted from a site of unknown capacity), no_capacity |
capacity demand · demand_status |
partial (diverted from a nearer site of unknown capacity or cost), no_capacity, no_demand, no_travel_time (unit off the network) |
ranking · topsis_status |
no_<criterion> (one criterion missing), no_criteria (several) |
ranking · criteria_status |
partial (a criterion is a lower bound or a scaled sum), no_complete_sum (left out under partial_units="exclude", or no value at all) |
units · unit_status |
computed, partial, empty, or the most common missing code |
pipelines · repair_status |
partial (unknown material, or segments without a length), no_pgv, no_length, empty |
Isolation categories¶
access.isolation_status compares the travel time to the nearest facility before and after the
event, with a tolerance worse_tol_s:
| Category | Rule |
|---|---|
newly_cut_off |
reachable before, not after |
always_cut_off |
reachable neither before nor after (not an event loss) |
worse |
reachable both times, slower by more than the tolerance |
same |
reachable both times, change within the tolerance |
improved |
reachable only after, or faster by more than the tolerance |