
Fill missing Munsell colors on a PedonRecord from Vis-NIR spectra
Source:R/spectra-munsell.R
fill_munsell_from_spectra.RdHigh-level helper that runs
predict_munsell_from_spectra per horizon over the
Vis-NIR spectra in pedon$spectra$vnir and writes the
resulting hue / value / chroma back to the matching horizon rows
via pedon$add_measurement(..., source = "predicted_spectra").
Arguments
- pedon
A
PedonRecordthat has$spectra$vnirpopulated (rows = horizons, cols = wavelengths).- overwrite
If
TRUE, overwrite existing Munsell measurements. DefaultFALSE(only fills horizons whose Munsell is currently NA).- verbose
If
TRUE(default), prints a per-horizon summary.
Details
This is the operational answer to the v0.9.35 Argissolo color
confusion: when surveyor Munsell colors are missing and the user
has Vis-NIR (e.g. from OSSL), call this helper, then re-run
classify_sibcs – the v0.9.45
"color-undetermined" fallback will lift, and the classification
will descend to subordem / grande grupo / subgrupo with proper
evidence_grade.