Skip to contents

A function to derive soil Environmental Covariates (ECs) for multiple soil attributes at multiple depths from the SLGA data resource.

Usage

get.S.ECs(
  Envs,
  Lats,
  Lons,
  tif.dir = NULL,
  ncores = NULL,
  verbose = TRUE,
  dlprompt = FALSE
)

Arguments

Envs

Vector of environment names character strings.

Lats

Vector of latitude numeric values for each environment.

Lons

Vector of longitude numeric values for each environment.

tif.dir

Directory path where SLGA TIFF files are saved from using the dl.slga() function. If left as the default (NULL), files will be downloaded from the SLGA API which may be time consuming with slow internet download speeds.

ncores

Number (integer) of cores to use for parallel processing. Use 1 to run sequentially in series. The default (NULL) will use the maximum available cores. If running in parallel, an output log text file will be created in the working directory.

verbose

Logical. Should progress be printed? Default = TRUE.

dlprompt

Logical. Should the user be prompted to approve the total download size? Default = FALSE.

Value

A data frame of soil EC values with environment names as rows and covariates as columns.

References

Grundy, M. J., Rossel, R. A. V., Searle, R. D., Wilson, P. L., Chen, C., Gregory, L. J., Grundy, M. J., Rossel, R. A. V., Searle, R. D., Wilson, P. L., Chen, C., & Gregory, L. J. (2015). Soil and Landscape Grid of Australia. Soil Research, 53(8), 835–844.

See also

Author

Nick Fradgley