fetch_soils_from_Miller1998_CONUSSoil: Extract soil information from the CONUSSoil soil dataset

View source: R/extract_soils_Miller1998_CONUSSoils.R

fetch_soils_from_Miller1998_CONUSSoilR Documentation

Extract soil information from the CONUSSoil soil dataset

Description

Extract soil information from the CONUSSoil soil dataset

Usage

fetch_soils_from_Miller1998_CONUSSoil(
  x,
  crs,
  vars,
  lower_limits_by_vars,
  path,
  verbose
)

Arguments

x

A numerical two-dimensional object (a matrix, array, or data.frame) with longitude/X, latitude/Y as columns; a sp::SpatialPoints object; or a terra::SpatVector object; or a sf object with a point geometry, i.e., an object with a class sf or sfc.

crs

An object which is a crs or from which one can be derived. x can be numeric as a EPSG number; a character string as a wkt; a character string as a proj4 (not recommended because outdated); or of a class including raster::Raster, sp::Spatial, sp::CRS, or a sf or sfc class.

vars

A vector of character strings. The requested variables as used by CONUSSoil; see Miller et al. 1998.

lower_limits_by_vars

A named numeric vector. The names correspond to vars and values represent the lower limits that are conditioned/ masked out, i.e., set to NA.

path

A character string. The path to the local copy of the CONUSSoil folder hierarchy, e.g., dirname(prepare_script_for_Miller1998_CONUSSoil()).

verbose

A logical value.

Notes

This is a function with minimal functionality; use extract_soils_Miller1998_CONUSSoil for a user-friendly interface.

References

Miller, D. A., and R. A. White. 1998. A conterminous United States multilayer soil characteristics dataset for regional climate and hydrology modeling. Earth Interactions 2:1-26. http://www.soilinfo.psu.edu/index.cgi?soil_data&conus


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