Extract soil data from gssurgo

extract_soil_gssurgo(
  outdir,
  lat,
  lon,
  size = 1,
  radius = 500,
  depths = c(0.15, 0.3, 0.6)
)

Arguments

outdir

Output directory for writing down the netcdf file

lat

Latitude

lon

Longitude

size

Ensemble size

radius

radius in meters is used to take soil type samples around the site

depths

Standard set of soil depths in m to create the ensemble of soil profiles with.

Value

It returns the address for the generated soil netcdf file

Author

Hamze Dokoohaki

Examples

if (FALSE) { # \dontrun{
   outdir  <- "~/paleon/envTest"
   lat     <- 40
   lon     <- -80
   PEcAn.data.land::extract_soil_gssurgo(outdir, lat, lon)
} # }