
Convert a soilKey PedonRecord to an aqp SoilProfileCollection
Source:R/aqp-interop-v0962.R
pedon_to_spc.RdThe mapping respects aqp's expected column conventions and sets
the metadata required by getArgillicBounds(),
getCambicBounds(), and mollicEpipedon():
Arguments
- pedon
A
PedonRecord.
Value
A aqp::SoilProfileCollection with one site (the
pedon) and one row per horizon.
Details
idfrompedon$site$idtop/bottomfromtop_cm/bottom_cmname(designation) fromdesignationtexcl(texture class) derived viatexture_class_from_pctclay,silt,sandfromclay_pct/silt_pct/sand_pctm_hue,m_value,m_chroma,d_value,d_chromafrommunsell_*_moistandmunsell_*_dry
Internal use; the soilKey diagnostics call this on the fly when
engine = "aqp". Direct use is supported for users who want
to plug additional aqp algorithms (slab, slice,
glom) into a soilKey workflow.