Dense vegetation is placed independently in each cell, without spatial structure.
Valid values and batch sampling
A single value fixes a parameter. A length-2 vector is a range, sampled
once per landscape by create_landscapes and rejected by
create_landscape. The table below shows for each parameter:
valid values that create_landscape accepts, and
sampled ranges that create_landscapes draws from
once per landscape for any parameter left unset. The defaults shown in
Usage therefore apply to create_landscape only. Ranges that
scale with landscape size are shown for the default 100 by 100.
| Parameter | Valid | Sampled |
veg_prob | 0 to 1 | 0.8 to 1 |
Examples
# A single landscape, with a fixed value
create_landscape("dense", params = pattern_dense(veg_prob = 0.95))
#> Landscape: <unnamed> [pattern: dense]
#> -----------------------------------------
#> Dimensions: 100x100 (10000 cells)
#> Resolution: 1.0x1.0
#> Extent : xmin=0.0, xmax=100.0, ymin=0.0, ymax=100.0
#> Values : min=0.0, max=1.0
#> Parameters: width = 100, height = 100, veg_prob = 0.95
# A batch, with veg_prob drawn from a range once per landscape
create_landscapes(
n = 4,
patterns = "dense",
params_list = list(dense = pattern_dense(veg_prob = c(0.85, 1)))
)
#> ✔ Successfully generated all 4 training landscapes
#> $dense_1
#> Landscape: "dense_1" [pattern: dense]
#> -----------------------------------------
#> Dimensions: 100x100 (10000 cells)
#> Resolution: 1.0x1.0
#> Extent : xmin=0.0, xmax=100.0, ymin=0.0, ymax=100.0
#> Values : min=0.0, max=1.0
#> Parameters: width = 100, height = 100, veg_prob = 0.927899734594394
#>
#> $dense_2
#> Landscape: "dense_2" [pattern: dense]
#> -----------------------------------------
#> Dimensions: 100x100 (10000 cells)
#> Resolution: 1.0x1.0
#> Extent : xmin=0.0, xmax=100.0, ymin=0.0, ymax=100.0
#> Values : min=0.0, max=1.0
#> Parameters: width = 100, height = 100, veg_prob = 0.895664216484874
#>
#> $dense_3
#> Landscape: "dense_3" [pattern: dense]
#> -----------------------------------------
#> Dimensions: 100x100 (10000 cells)
#> Resolution: 1.0x1.0
#> Extent : xmin=0.0, xmax=100.0, ymin=0.0, ymax=100.0
#> Values : min=0.0, max=1.0
#> Parameters: width = 100, height = 100, veg_prob = 0.988302973238751
#>
#> $dense_4
#> Landscape: "dense_4" [pattern: dense]
#> -----------------------------------------
#> Dimensions: 100x100 (10000 cells)
#> Resolution: 1.0x1.0
#> Extent : xmin=0.0, xmax=100.0, ymin=0.0, ymax=100.0
#> Values : min=0.0, max=1.0
#> Parameters: width = 100, height = 100, veg_prob = 0.956263233337086
#>
