Summarize FRI zones still short of target at the reburn ceiling

landmine_reburn_ceiling(polysNeedMoreFires, year)

Arguments

polysNeedMoreFires

a data.table with columns polygonNumeric (the FRI zone), N (fires still needed) and maxSize (pixels still to burn).

year

numeric, the simulation year.

Value

A data.table with columns year, FRI, nFires, pixelsShort, containing only zones with at least one outstanding fire; zero rows when nothing is short.

Details

Emitted only when the reburn loop exits on the maxReburns ceiling rather than because every fire reached its target – the two are otherwise indistinguishable in a log, and the second means the year's area-burned target was abandoned unmet.

pixelsShort means different things in the two reburn phases: in phase 1 maxSize is a fire's full target, in phase 2 it is the remaining shortfall. The caller is responsible for passing the table from the phase it means.