get_soil: Easily Collection of Soil Features (250m res)

View source: R/get_soil.R

get_soilR Documentation

Easily Collection of Soil Features (250m res)

Description

Imports soil features from SoilGrids data set

Usage

get_soil(
  env.id,
  lat,
  lon,
  home.path = NULL,
  variables.names = "clay",
  sleep = 20,
  logfile = NULL
)

Arguments

env.id

vector (character or level). Identification of the site/environment (e.g. Piracicaba01).

lat

vector (numeric). Latitude values of the site/environment (e.g. -13.05) in WGS84.

lon

vector (numeric). Longitude values site/environment (e.g. -56.05) in WGS84.

variables.names

vector (character).

properties

A SoilGrid property. Defaults to clay. Possible

verbose

Report messages to console? Defaults to FALSE.

Value

A 'data.frame' object

Author(s)

Brandon Monier, modified by Germano Costa Neto

References

Poggio et al (2021). _SoilGrids 2.0: producing soil information for the globe with quantified spatial uncertainty_. European Geosciences Union, <https://doi.org/10.5194/soil-7-217-2021>.

Examples

## Not run: 
## Downloading clay and nitrogen for a given location
get_soil(env.id = "NM", lat = -13.05, lon = -56.05,variables.names = c('clay','nitrogen'))

## download all variables (default) for a single location
get_soil(env.id = "NM", lat = -13.05, lon = -56.05)

## All variables for two locations
env = c("NM","SO")
lat = c(-13.05,-12.32); lon = c(-56.05,-55.42)
get_soil(env.id = env, lat = lat, lon = lon)

## End(Not run)


allogamous/EnvRtype documentation built on June 11, 2025, 5:57 a.m.