View source: R/extract_soils_NRCS_SOLUS100.R
download_SOLUS100 | R Documentation |
SOLUS100
Download soil layers from SOLUS100
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
)
path |
A character string. The path to the local copy of |
vars |
A vector of variable names. See |
depths |
Soil depths in centimeters from surface.
See |
stat |
A vector of character strings. See Nauman et al. 2024 |
url_solus100 |
The |
verbose |
A logical value. |
File names to local copies of requested soil layers.
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.
check_SOLUS100()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.