Create soil depth inputs for a given spatial unit.
create_inputs.soil_depth.RdThis function loads or generates soil depth data for a specified spatial unit. If cached data exists and 'force' is FALSE, it loads the data from disk. Otherwise, it queries the RADIS database to get soil depth information and saves the result if 'write_results' is TRUE.
Usage
create_inputs.soil_depth(
su_label = "climate",
sf = load_spatial_units(su_label = su_label),
...,
force = FALSE,
cfg = loadConfig()
)Arguments
- su_label
character Label for the spatial unit (default: "climate_depth").
- sf
sf::sf Spatial unit sf object.
- ...
Additional arguments passed to climate input creation.
- force
logical Whether to force the creation of the uptakes data from the raw data.
- cfg
a config object. Configuration to use. See loadConfig for details