You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version isn't very informative because:
it doesn't know about missing horizons
doesn't specifically take into account properties required by CEAP/APEX
??? other reasons
Data required by CEAP/APEX, via CAH:
sand content
silt content
1/3 bar bulk density
and OD bulk density (if present)
sum of bases
CaCO3 equivalent
EC (sat paste)
1:1 pH
rock fragments
cec7 (NH4OAc)
organic C
1/3 bar water ret.
15 bar water ret.
Ideas
simple score based on number of non-null fields in this list
simple score based on number of non-null fields, weighted by number of expected hz, via OSD
bit mask (e.g. 1010010101) type reporting so that the user knows what is missing
weighted-score, based on column importance: e.g. clay is more important than al_dith
An example via aqp
library(soilDB)
library(aqp)
# get some example datax<- fetchKSSL('amador')
# variable of interestvars<- c('sand', 'silt', 'clay', 'db_13b', 'db_od', 'bs82', 'bs7', 'caco3', 'ec_12pre', 'ph_h2o', 'cec7', 'oc', 'w3cld', 'w15l2')
# get soil depth based on detection of "non-soil horizons"sdc<- getSoilDepthClass(x, name="hzn_desgn", top="hzn_top", bottom="hzn_bot", p='Cr|R|Cd')
# existing aqp function for detecting missing data# inform max_depth via getSoilDepthClass(...)# filter out non-soil horizons (there shouldn't be many in the KSSL data)res<- missingDataGrid(x, max_depth=max(sdc$depth, na.rm=TRUE), vars=vars, filter.column='hzn_desgn', filter.regex='Cr|R|Cd')
# compute (simple) data completeness index# 100 - [ sum(pct missing by variable) / n_variables ]res$dci<- round(100- (rowSums(res[, -1]) / length(vars)))
# copy back into site-level attributes
site(x) <-res[, c('pedon_key', 'dci')]
# compare with current "pedon completeness index": pretty close
plot(pedon_completeness_index~dci, data=site(x))
The current version isn't very informative because:
Data required by CEAP/APEX, via CAH:
Ideas
clay
is more important thanal_dith
An example via
aqp
The text was updated successfully, but these errors were encountered: