The calibration is deliberately run on a uniform, fully-flammable square rather than a real study area, so that the fitted shape statistics are not confounded by a particular landscape's fuel pattern. It is run at several pixel sizes to confirm the parameters transfer across resolutions.

landmine_optim_landscape(
  pixelSize,
  n = 1000L,
  file = tempfile(fileext = ".tif")
)

Arguments

pixelSize

Pixel resolution, in map units (m).

n

Number of pixels per side. Default 1000, i.e. a 1e6-cell landscape.

file

Optional path to write the raster to. The objective function takes the landscape as a file path, because SpatRaster objects cannot be serialized to cluster workers.

Value

A list with file (path), ros (the SpatRaster), and centreCell (the cell index at the centre of the landscape, used as the ignition point).

Examples

# \donttest{
lscape <- landmine_optim_landscape(pixelSize = 240, n = 100)
terra::ncell(lscape$ros)
#> [1] 10000
# }