Skip to contents

Create soil texture scenarios

Usage

create_soil_texture_scenarios(
  path = try(getDataPath("Scenarios/Soil/Texture/Soil_texture_scenarios.csv", cfg = cfg),
    silent = TRUE),
  pra_sf = load_spatial_units(su_label = "PRA", cfg = cfg),
  parallel = FALSE,
  parallel_strategy = ifelse(.Platform$OS.type == "unix", "multicore", "multisession"),
  parallel_workers = future::availableCores() - 1,
  overlay_mode = "intersect_geometry",
  ...,
  force = FALSE,
  write_results = cfg$data$write_results,
  cfg = loadConfig()
)

Arguments

path

character Path to the soil texture scenarios CSV file.

pra_sf

sf Spatial units used to compute scenarios.

parallel

logical If TRUE, uses parallel processing to create soil texture scenarios for each PRA. Default is FALSE.

parallel_strategy

character Future strategy used when parallel is TRUE.

parallel_workers

integer Number of workers used when parallel is TRUE.

overlay_mode

character Overlay mode passed to RADIS::get_soil_texture().

...

Additional arguments forwarded to helper functions.

force

logical If TRUE, recreate intermediate and final scenario files.

write_results

logical If TRUE, write outputs to disk.

cfg

list Configuration list.

Value

data.frame Soil texture scenarios.