Learn R Programming

soilDB (version 1.7)

fetchKSSL: Fetch KSSL Data (EXPERIMENTAL)

Description

Get KSSL data via BBOX, MLRA, or series name query, from the SoilWeb system.

Usage

fetchKSSL(series=NULL, bbox=NULL, mlra=NULL, pedlabsampnum=NULL, 
pedon_id=NULL, pedon_key=NULL)

Arguments

series
a soil series name, case insensitive
bbox
a bounding box in WGS84 geographic coordinates e.g. c(-120, 37, -122, 38)
mlra
an MLRA ID
pedlabsampnum
KSSL pedon lab sample number
pedon_id
user pedon ID
pedon_key
KSSL internal pedon ID

Value

  • a SoilProfileCollection object

Details

This is an experimental interface to most of the KSSL data as of June 2015. Series-queries are case insensitive. Series name is based on the "correlated as" field (from KSSL snapshot) when present. The "sampled as" classification was promoted to "correlated as" if the "correlated as" classification was missing.

References

http://ncsslabdatamart.sc.egov.usda.gov/

See Also

fetchOSD

Examples

Run this code
# search by series name
s <- fetchKSSL(series='auburn')

# search by bounding-box
# s <- fetchKSSL(bbox=c(-120, 37, -122, 38))

# how many pedons
length(s)

# plot 
par(mar=c(0,0,0,0))
plot(s, name='hzn_desgn', max.depth=150)

Run the code above in your browser using DataLab