Soil properties for design
packages/soil turns NRCS's published soil data into values for design. It's pure code, so the same soil always gives the same answer. Soil data arrives through services/gis-worker/gis_worker/soil/sda.py, kept as map units, components and horizons.
What the numbers are
NRCS's conductivity values are estimates for a soil type, not measurements in a field. NRCS has a guide for estimating them (National Soil Survey Handbook, Exhibit 618-9), and studies comparing them with field measurements call them soil survey estimates. Estimates like these can be off by an order of magnitude, so confidence from NRCS's data alone is never "high".
Conductivity through layers
Water moves differently along layers than through them. For layers of thickness $d_i$ and saturated conductivity $K_i$:
- Along the layers: $K_h = \sum K_i d_i / \sum d_i$, a thickness-weighted arithmetic mean. The most conductive layers dominate it.
- Through the layers: $K_v = \sum d_i / \sum (d_i / K_i)$, a thickness-weighted harmonic mean. The least conductive layers dominate it.
Those are the standard equivalents for saturated flow in layered ground. See The GW Project's section on heterogeneous materials and its derivation. The tests check them against cases worked by hand, including a real Blue Earth County profile.
Only layers with values count. Nothing gets filled in, and the result says how much of the depth was known.
One value for a zone
A map unit can hold several soils, and those differences are kept. Where one number is needed, it comes from the largest component with soil layers, and the panel says which that was. Averaging across components would describe a soil that isn't there.
The panel shows values down to 150 cm, about 5 ft. Spacing calculations will ask about their own depths, above and below the drain.
Flags
| Flag | When | Lowers confidence |
|---|---|---|
| No soil data | No component has layers, as with water | Confidence is unknown |
| Mostly not soil | The largest component has no layers, as with urban land | Yes |
| Several major soils | NRCS marks more than one as major | No |
| Major soils disagree | Their conductivities are 3 times apart or more | Yes |
| Missing conductivity | Values don't reach 150 cm | Yes |
| Sharp fall | Conductivity falls by 5 times or more between layers | Yes |
| Wide range | The high value is over 20 times the low | Yes |
| Restrictive layer | A component has one within 150 cm | No, it's a fact rather than doubt |
| Impermeable layer unknown | NRCS records no restriction for the largest soil | No |
The numbers in that table are judgments, not standards. An engineer should review them. They're constants at the top of packages/soil/src/properties.ts. NRCS's representative values tend to step by about 3 or 10 times, as with Colvin's 9.17 µm/s over 0.92 µm/s, so a sharp fall is set at 5 times to catch the big step and not the small one. Their ranges usually span about 10 times, so a wide range is set at 20.
A person's own values
Anyone with better numbers can set a zone's Ksat along or through its layers, or its restrictive layer's depth. Each must say whether it was measured in the field or is their own estimate. NRCS's published data is never changed. The person's value sits beside it in its own table, and going back to NRCS's loses nothing.
They attach to a map unit, not a component or horizon, because NRCS renumbers those when it updates a survey. They stay when soils are fetched again.
Confidence follows from what's been supplied:
- A value someone has given no longer carries the doubts about NRCS's version of it, such as missing Ksat or an unknown impermeable layer.
- Doubts about the zone stay. One measurement can't settle a map unit with several soils.
- High confidence takes both Ksat along layers and the restrictive layer depth measured, in a zone with one major soil. A person's own estimate never reaches it, since it isn't a measurement.
What isn't settled
- How deep an impermeable layer lies. NRCS's layers usually stop by 5 to 7 ft, and spacing calculations need this depth. Item 62 has to make that assumption visible rather than hide it.
- Whether a sharp fall counts as an impermeable layer. NRCS says it can: "a layer with a hydraulic conductivity value of one-tenth or less than that of the soil stratum containing the water table" (Part 650, Chapter 14, 650.1411(G)(2)). The flag here is a softer warning, at five times, and it stays one. Item 62 applies NRCS's rule when choosing a barrier for spacing.
- Cracking clays. Vertisols like Fargo clay crack when dry and swell when wet, so conductivity changes with the season. A single published value can't show that.
- Thresholds and the 150 cm depth, as above.