Extract Soil Order From DAAS Using Australian GPS Coordinates
Source:R/extract_daas_soil_order.R
extract_daas_soil_order.Rd
Extracts the major soil order at the GPS points provided assuming that they are land-based coordinates.
Arguments
- x
List
. An object with names containingvector
pairings of longitude and latitude values expressed as decimal degree values in that order, each individualvectors
' items should be named "x" (longitude) and "y" (latitude), respectively. Thelist
item names should be descriptive of the individualvectors
and will be included in a "location" column of the output.- cache
Boolean
. Store soil data locally for later use? IfFALSE
, the downloaded files are removed when R session is closed. To take advantage of cached files in future sessions, usecache = TRUE
. Defaults toFALSE
. Value is optional. All future requests will use the cached data unlessremove_cache()
is used to remove the cached file.- aez_only
Boolean
. Only use soils in the GRDC agroecozones? Useaez = FALSE
to extract soil data from anywhere in Australia. Useaez = TRUE
to only work with soils in the GRDC agroecozones. Defaults toTRUE
.
Value
A data.table::data.table with the provided GPS coordinates and the respective Digital Atlas of Australian Soils (DAAS soil order), "Spatial Data Conversion of the Atlas of Australian Soils to the Australian Soil Classification v01".
Note
The first run will take additional time to download and extract the
soils data. If cache = TRUE
, any use after this will be much faster due to
the locally cached geospatial soils data.
Examples
if (FALSE) { # interactive()
locs <- list(
"Merredin" = c(x = 118.28, y = -31.48),
"Corrigin" = c(x = 117.87, y = -32.33),
"Tamworth" = c(x = 150.84, y = -31.07)
)
extract_daas_soil_order(x = locs, cache = FALSE)
# extract soils data for Mt. Isa, Qld (not in the GRDC AEZ)
locs <- list("Mt_Isa" = c(x = 139.4930, y = -20.7264))
extract_daas_soil_order(x = locs, aez = FALSE)
}