Skip to contents

Recovers cells that are exact closures of other measured columns in the same horizon (not statistical estimates): the texture third (clay/silt/sand) when the other two are present and sum to \< 100; effective CEC as sum(bases) + al; aluminium saturation as 100 * al / ecec; and base saturation as 100 * sum(bases) / cec. Every fill is written with source = "inferred_prior" so the PedonRecord authority order keeps it from displacing a measured value and the evidence grade drops to "C". Companion to gapfill_within_pedon (depth interpolation) and apply_soilgrids_depth_prior (external prior); reachable via the gapfill = list(method = "derive") argument of the classifiers.

Usage

gapfill_derive_horizon(pedon, overwrite = FALSE)

Arguments

pedon

A PedonRecord.

overwrite

If FALSE (default) only NA target cells are filled.

Value

Invisibly, the mutated pedon; attribute "gapfill_derive_horizon" records the count filled.