R/cf_sloc_adjust.r

cf.sloc.adjust <- function(soil.profile){
    i=!is.na(soil.profile$layer$SLCF)
    coarse = soil.profile$layer$SLCF[i]
    sloc = soil.profile$layer$SLCF[i]
    sloc = sloc*(1-coarse/100)
    soil.profile$layer$SLOC[i]=sloc
}
palderman/dssatR documentation built on May 24, 2019, 5:59 p.m.