Expands the sparse two-table representation into a dense coverage fraction matrix. Primarily for visualisation and testing.

materialise_chunk(x, id = NULL, type = c("matrix", "vector"))

Arguments

x

a "controlledburn" object from burn_sparse()

id

integer polygon id to materialise, or NULL (default) for all

type

character, one of "matrix" (default) or "vector"

Value

A numeric matrix (nrow × ncol) or vector (length nrow*ncol) of coverage fractions. Values range from 0 (outside) to 1 (fully inside).