fetch_soils_from_POLARIS: Extract soil information from the POLARIS soil dataset

View source: R/extract_soils_POLARIS.R

fetch_soils_from_POLARISR Documentation

Extract soil information from the POLARIS soil dataset

Description

Extract soil information from the POLARIS soil dataset

Usage

fetch_soils_from_POLARIS(
  x,
  crs,
  vars,
  stat,
  path = ".",
  buffer_m = NULL,
  fun = NULL,
  na.rm = TRUE,
  verbose = FALSE
)

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. See Chaney et al. 2019

stat

A character string. See Chaney et al. 2019

path

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

buffer_m

A numeric value. The radius of a buffer around each point from which to extract cell values and across which fun is applied. Passed to extract. Set to NULL to extract POLARIS gridcell values at point locations.

fun

A function. Summarizing gridcell values if more than one value is extracted per location. See extract.

na.rm

A logical value. Passed to fun.

verbose

A logical value.

Notes

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

References

Chaney, N. W., B. Minasny, J. D. Herman, T. W. Nauman, C. Brungard, C. L. S. Morgan, A. B. McBratney, E. F. Wood, and Y. T. Yimam. 2019. POLARIS soil properties: 30-meter probabilistic maps of soil properties over the contiguous United States. Water Resources Research 55:2916-2938. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1029/2018WR022797")}.


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