Skip to content

After a fire

limen_core.post_fire

After a fire: for how long, and how much, a burnt slope is more ready to fail.

A burnt slope takes in less water for about two years: more runs off, and shallow slides come with less rain. The amplification is a bell in time,

F(m) = exp(-(m - peak_months)^2 / curve_denominator)   for 0 <= m <= window_months_max

and 0 outside. The severity changes how much, not when: a crown fire and burnt stubble do not leave the same slope, but the soil recovers on the same clock. So the severity multiplies the bell and never moves it:

F(m, severity) = F(m) * (severity_floor + (1 - severity_floor) * severity)

The multiplier is at most 1: the severity can only soften, never invent.

The severity here comes from two sources joined, which is why it lives in this package: the fire radiative power of the satellite detections inside a burnt perimeter (firms-client: total_frp) over the area of that perimeter (effis-client). :func:frp_density is that division; :func:frp_severity turns it into a number from 0 to 1 between two anchors that are calibration.

The density, not the total: measured on 2,419 Italian perimeters, the total power follows the area (correlation 0.63), the density much less (0.26). The total would say that a large fire is severe by definition.

Not measured stays not measured: None never becomes 0. A perimeter with no detection inside is not a weak fire. Pure functions, no I/O.

PostFireParams dataclass

The calibration of the post-fire factor.

The three severity fields have neutral defaults: with them the factor is the bell alone, as if no severity were known.

frp_density

frp_density(total_mw: float | None, area_ha: float) -> float | None

Fire radiative power per hectare of a burnt perimeter, in MW/ha.

total_mw is the power of the detections inside the perimeter (None when none carries one: not measured, and the answer is None); area_ha is the area of the perimeter, which must be more than 0.

frp_severity

frp_severity(density_mw_per_ha: float | None, *, params: PostFireParams) -> float | None

The severity of a burn from 0 to 1, from its power density; None stays None.

A straight ramp between frp_floor_mw_per_ha and frp_saturation_mw_per_ha.

severity_multiplier

severity_multiplier(severity: float | None, *, params: PostFireParams) -> float

What the bell is multiplied by: from severity_floor to 1; 1 when not measured.

On its own so that it can be shown: whoever sees a factor lower than expected can read how much the severity softened it.

post_fire_factor

post_fire_factor(months_since_fire: float | None, *, params: PostFireParams, severity: float | None = None) -> float

The post-fire factor from 0 to 1; 0 with no recent fire (None) or outside the window.