getSoilGrid: getSoilGrid

View source: R/getSoilGrid.R

getSoilGridR Documentation

getSoilGrid

Description

Downloads soil data (sand, clay, OM, gravel, bulk density and depth) from soilgrids.org in raster format, calculates the weigthed average according to the layer depths

Usage

getSoilGrid(bbox, global_depth, ouputdir = getwd())

Arguments

bbox,

any type of spatial object

global_depth,

global raster of depth to the R horizon, unfortunately not available anymore in the new update of soilgrids, so, download it separately fromhttps://files.isric.org/soilgrids/former/2017-03-10/data/BDRICM_M_250m_ll.tif

ouputdir,

directory where to save the files

Value

A RasterBrick object with the layers organized as sand(perc),clay(perc),organic matter(perc),coarse-fragments-fraction(perc), bulk density(g cm-3) and depth (m)

Examples

getSoilGrid()

dsval/splashTools documentation built on Jan. 26, 2023, 4:40 a.m.