download_SOLUS100: Download soil layers from 'SOLUS100'

View source: R/extract_soils_NRCS_SOLUS100.R

download_SOLUS100R Documentation

Download soil layers from SOLUS100

Description

Download soil layers from SOLUS100

Usage

download_SOLUS100(
  path = ".",
  vars = c("resdept_cm", "dbovendry", "fragvol", "sandtotal", "silttotal", "claytotal",
    "soc"),
  depths = depth_profile_SOLUS100(),
  stat = c("p", "l", "h", "rpi"),
  url_solus100 = "https://storage.googleapis.com/solus100pub/",
  verbose = FALSE
)

Arguments

path

A character string. The path to the local copy of SOLUS100.

vars

A vector of variable names. See variables_SOLUS100()

depths

Soil depths in centimeters from surface. See depth_profile_SOLUS100()

stat

A vector of character strings. See Nauman et al. 2024

url_solus100

The URL to the SOLUS100 data repository. See Nauman et al. 2024

verbose

A logical value.

Value

File names to local copies of requested soil layers.

References

Nauman, T. 2024. Data from: Soil Landscapes of the United States 100-meter (SOLUS100) soil property maps project repository. Ag Data Commons. https://doi.org/10.15482/USDA.ADC/25033856.V1.

See Also

check_SOLUS100()

Examples

## Not run: 
if (curl::has_internet()) {
  dir_tmp <- tempdir()
  fsolus <- download_SOLUS100(dir_tmp, vars = "resdept_cm")
  terra::plot(terra::rast(file.path(dir_tmp, fsolus)))
  unlink(file.path(dir_tmp, fsolus)) # clean up
}

## End(Not run)


DrylandEcology/rSW2exter documentation built on May 4, 2024, 10:53 p.m.