Skip to contents

Sparse vegetation is placed independently in each cell, without spatial structure.

Usage

pattern_bare(veg_prob = 0.1)

Arguments

veg_prob

Numeric. Probability that each cell is vegetated (0-1, default: 0.1). Higher values give a denser vegetation cover.

Value

A named "landscape_params" list containing the supplied parameters.

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.

ParameterValidSampled
veg_prob0 to 10 to 0.1

Examples

# A single landscape, with a fixed value
create_landscape("bare", params = pattern_bare(veg_prob = 0.05))
#> Landscape: <unnamed> [pattern: bare]
#> -----------------------------------------
#> 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.05 

# A batch, with veg_prob drawn from a range once per landscape
create_landscapes(
  n = 4,
  patterns = "bare",
  params_list = list(bare = pattern_bare(veg_prob = c(0, 0.1)))
)
#>  Successfully generated all 4 training landscapes
#> $bare_1
#> Landscape: "bare_1" [pattern: bare]
#> -----------------------------------------
#> 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.0988522367086262 
#> 
#> $bare_2
#> Landscape: "bare_2" [pattern: bare]
#> -----------------------------------------
#> 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.0182482296833768 
#> 
#> $bare_3
#> Landscape: "bare_3" [pattern: bare]
#> -----------------------------------------
#> 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.0707890583202243 
#> 
#> $bare_4
#> Landscape: "bare_4" [pattern: bare]
#> -----------------------------------------
#> 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.000889525189995766 
#>