-
The gNATSGO mukey grid is a mix of SSURGO, STATSGO, and RSS mukeys. Can you tell SSURGO vs STATSGO vs RSS from the mukey itself? For example, by number of digits, value ranges, etc? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
No, the mukey does not have this information. The mukeys map to our internal legend mapunit record IDs, so any changes there are propagated to the final product. When a mapunit is removed from a public legend, that mukey is no longer used. If a new mapunit is added to a legend, it is assigned a new mukey sequentially for the instance of that mapunit in that area. This ultimately means that SSURGO, STATSGO, and RSS mukeys are mixed. library(soilDB)
# full range
x <- SDA_query(
"SELECT MIN(mukey), MAX(mukey) FROM mapunit
INNER JOIN legend ON legend.lkey = mapunit.lkey"
)
#> single result set, returning a data.frame
x
#> V1 V2
#> 1 49315 3400375
# STATSGO only
x <- SDA_query(
"SELECT MIN(mukey), MAX(mukey) FROM mapunit
INNER JOIN legend ON legend.lkey = mapunit.lkey
WHERE areasymbol = 'US'"
)
#> single result set, returning a data.frame
x
#> V1 V2
#> 1 657753 2790295
# STATSGO mukeys are mixed with those from other areas
x <- SDA_query(
"SELECT COUNT(DISTINCT mukey) FROM mapunit
INNER JOIN legend ON legend.lkey = mapunit.lkey
WHERE areasymbol != 'US' AND mukey >= 657753 AND mukey <= 2790295"
)
#> single result set, returning a data.frame
x
#> V1
#> 1 105658 For STATSGO, you can use SDA to look up the mapunit's legend and see what areasymbol it is. All STATSGO mapunits have |
Beta Was this translation helpful? Give feedback.
No, the mukey does not have this information.
The mukeys map to our internal legend mapunit record IDs, so any changes there are propagated to the final product. When a mapunit is removed from a public legend, that mukey is no longer used. If a new mapunit is added to a legend, it is assigned a new mukey sequentially for the instance of that mapunit in that area. This ultimately means that SSURGO, STATSGO, and RSS mukeys are mixed.