Aggregates maximum velocities from runout simulation paths into a raster,
using a specified summary method if multiple simulations overlap.
Usage
velocityToRaster(x, dem, method = "max")
Arguments
- x
A list of simulation outputs containing cell_max_vel and cell_trav_freq.
- dem
A SpatRaster (DEM) used as reference.
- method
Summary function to apply across overlapping simulations (e.g., "max", "mean").
Value
A SpatRaster with cell values representing maximum velocity (in m/s).
Examples
if (FALSE) { # \dontrun{
# Convert velocity results to a raster
trav_vel <- velocityToRaster(sim_paths, dem)
plot(trav_vel)
} # }