soilgrids_texture_extraction.Rd
soilgrids_texture_extraction function A function to extract and save three types of soil texture data in parallel for a single or group of lat/long locations based on user-defined site location from SoilGrids250m version 2.0 : https://soilgrids.org
soilgrids_texture_extraction(
data_paths,
site_info,
outdir = NULL,
verbose = TRUE
)
A list containing the data (either virtual raster files or local file folders) and output path for all types of SoilGrids texture data e.g. data_paths <- list( list( url = "/vsicurl?max_retry=30&retry_delay=60&list_dir=no&url=https://files.isric.org/soilgrids/latest/data/sand/sand_", local = NULL, save_path = paste0(outdir, "sand_percent.rds")), list( url = "/vsicurl?max_retry=30&retry_delay=60&list_dir=no&url=https://files.isric.org/soilgrids/latest/data/clay/clay_", local = NULL, save_path = paste0(outdir, "clay_percent.rds")), list( url = "/vsicurl?max_retry=30&retry_delay=60&list_dir=no&url=https://files.isric.org/soilgrids/latest/data/silt/silt_", local = NULL, save_path = paste0(outdir, "silt_percent.rds")))
A data frame of site info containing the BETYdb site ID, site name, latitude, and longitude, e.g. (site_id, lat, lon)
Provide the path to store the texture data file
Provide progress feedback to the terminal? TRUE/FALSE
a data frame containing the soil texture data with columns "Depth", "Quantile", "Siteid", and "Value"