Function downloading soil data from SoilGrids database

get_soil_per_env(environment, info_environments, ...)

Arguments

environment

character Name of the environment for which climate data should be extracted.

info_environments

data.frame object with at least the 4 first columns.

  1. year: numeric Year label of the environment

  2. location: character Name of the location

  3. longitude: numeric longitude of the environment

  4. latitude: numeric latitude of the environment

  5. planting.date: (optional) Date YYYY-MM-DD

  6. harvest.date: (optional) Date YYYY-MM-DD

  7. elevation: (optional) numeric

  8. IDenv: character ID of the environment (location x year)

The data.frame should contain as many rows as Year x Location combinations. Example: if only one location evaluated across four years, 4 rows should be present.

Value

a data.frame data.frame with the following columns extracted from SoilGrids

  1. IDenv character

  2. a list of soil features

References

Poggio L, De Sousa LM, Batjes NH, Heuvelink G, Kempen B, Ribeiro E, Rossiter D (2021). “SoilGrids 2.0: producing soil information for the globe with quantified spatial uncertainty.” Soil, 7(1), 217--240.

Author

Cathy C. Westhues cathy.jubin@uni-goettingen.de