getSoilGrid | R Documentation |
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
getSoilGrid(bbox, global_depth, ouputdir = getwd())
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 |
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)
getSoilGrid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.