Usda Soil

v0.2.1
io.github.pipeworx-io/usda-soil Checked 2 days ago Published 27 days ago

USDA-NRCS Soil Data Access over SSURGO, the field-surveyed US soil map — the soil at any US…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

usda_soil_mapunit_at_point

The USDA-NRCS SSURGO soil map unit at one latitude/longitude in the United States — map unit key (mukey), symbol, the official map unit name ("Terril-Urban land complex, 2 to 5 percent slopes"), its acreage, and the soil survey area it belongs to. AUTHORITATIVE for "what soil is on this parcel" in the US: field-surveyed, not modelled. Keyless. Pass the mukey to usda_soil_components for the soil series and their properties.

ParameterTypeDescription
lat *numberLatitude in decimal degrees, WGS84 (e.g. 41.6).
lon *numberLongitude in decimal degrees, WGS84, negative in the US (e.g. -93.6).

usda_soil_components

The soil components inside one USDA SSURGO map unit — each named soil series with its percentage of the unit, official taxonomic class, drainage class, slope range, hydrologic soil group, land capability class and runoff potential. Answers "what soil series is this and how does it drain/behave". Keyless. Get the mukey from usda_soil_mapunit_at_point.

ParameterTypeDescription
mukey *stringSSURGO map unit key, e.g. "412898". From usda_soil_mapunit_at_point.
include_horizonsbooleanAlso return the soil horizons (depth layers) for each component with sand/silt/clay percentages, organic matter, pH and available water capacity. Default false.

usda_soil_query

Run a read-only SQL SELECT against the USDA-NRCS Soil Data Access database (SSURGO) — the full US soil survey schema: legend, mapunit, component, chorizon, cointerp, plus the SDA_ spatial helper functions such as SDA_Get_Mukey_from_intersection_with_WktWgs84. Use for anything the point and component tools do not cover: soil series by county, prime farmland acreage, drainage class distributions, crop yield indices. Keyless.

ParameterTypeDescription
sql *stringA T-SQL SELECT, e.g. "SELECT TOP 10 m.muname, m.muacres FROM mapunit m INNER JOIN legend l ON l.lkey = m.lkey WHERE l.areasymbol = 'IA153' ORDER BY m.muacres DESC". SELECT only. Use TOP n rather than…