Defines settings for settings for SoilGrids ingest. Handles the specification of the required layer identifier.

get_settings_soilgrids(varnam, layer = 1, agg = "mean")

Arguments

varnam

A charachter string specifying the variable of interest. See https://www.isric.org/explore/soilgrids/faq-soilgrids#What_do_the_filename_codes_mean for naming conventions.

layer

An integer or vector of integers specifying the soil layers. See https://www.isric.org/explore/soilgrids/faq-soilgrids#What_do_the_filename_codes_mean for available layers. Defaults to "0-5cm".

agg

A character string specifying the aggregation statistic for depth layer-specific values. Defaults to "mean". See https://www.isric.org/explore/soilgrids/faq-soilgrids#What_do_the_filename_codes_mean for available statistics.

Value

A named list containing information required for download from SoilGrids

Examples

if (FALSE) settings <- get_settings_soilgrids("soc") # \dontrun{}