soil_params_ensemble_soilgrids.Rd
A function to estimate the soil parameters based on SoilGrids soil texture data and write the parameter paths into settings
soil_params_ensemble_soilgrids(
settings,
sand,
clay,
silt,
outdir,
write_into_settings = TRUE
)
A multi-site settings
Data frames containing fraction in percentage from SoilGrids250m v2.0, each with columns "Depth", "Quantile", "Siteid", and "Value"
Provide the path to store the parameter files
Whether to write the path of parameter file into the setting. The default is TRUE
Ensemble soil parameter files defined in outdir and file paths in xml file
if (FALSE) { # \dontrun{
outdir <- "/projectnb/dietzelab/Cherry/SoilGrids_texture/39NEON"
# each file contains percent salt, silt, or clay
sand <- readRDS("/path/to/SoilGrids_texture/sand_percent.rds")
clay <- readRDS("/path/to/SoilGrids_texture/clay_percent.rds")
silt <- readRDS("/path/to/SoilGrids_texture/silt_percent.rds")
settings <-read.settings("/path/to/pecan_monthly_SDA_soilwater.xml")
soil_params_ensemble_soilgrids(settings,sand,clay,silt,outdir)
} # }