Skip to content

Can you tell SSURGO vs STATSGO vs RSS from the mukey itself? #336

Answered by brownag
kevinwolz asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brownag
Comment options

@kevinwolz
Comment options

@brownag
Comment options

@kevinwolz
Comment options

Answer selected by kevinwolz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants