Skip to contents

Reads climate spatial data and overlays soil depth information. The function currently supports the "climate_depth" base_sf option, which intersects climate and soil depth layers.

Usage

load_spatial_units(
  su_label = "climate_depth",
  write_results = cfg$data$write_results,
  cfg = loadConfig()
)

Arguments

su_label

character Spatial base to use. Default is "climate_depth".

write_results

logical If TRUE writes the results in the data folder. See returned value of loadConfig.

cfg

a config object. Configuration to use. See loadConfig for details

Value

An sf object with columns "id" and "geometry".

Examples

if (FALSE) { # \dontrun{
sf <- load_spatial_units()
} # }