aggregate_soilgrids: Aggregate SoilGrids rasters

View source: R/aggregate_soilgrids.R

aggregate_soilgridsR Documentation

Aggregate SoilGrids rasters

Description

It allows to transform and aggregate SoilGrids rasters. I.e. from SoilGrids one would download several layers (0-5, 5-15, 15-30, etc.). This function will take an average among them and convert to conventional units (see SoilGrids FAQ)

Usage

aggregate_soilgrids(r)

Arguments

r

SpatRaster, single/multiple layer with soil characteristics. Outcome of the get_soilgrids() function.

Value

SpatRaster

Examples

library(purrr)

f <- system.file("extdata/extent.shp", package="rusleR")
v <- vect(f)

sand <- get_soilgrids(v, layer = "sand")
sand

sand_agg <- aggregate_soilgrids(sand)
sand_agg


atsyplenkov/rusleR documentation built on Feb. 24, 2023, 9:04 a.m.