Skip to main content

deriveOmBcs

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-calculator/src / deriveOmBcs

Function: deriveOmBcs()

deriveOmBcs(a_som_loi, crop_category, soiltype_n): 0 | 1 | 2

Defined in: fdm-calculator/src/bcs/index.ts:448

Derives a BCS organic matter score (0–2) from an a_som_loi lab measurement (%).

Replicates the OBIC bcs_om scoring based on crop category × soil type quantile thresholds. Natuur always returns 2. Other combinations use the 30th/70th percentile thresholds.

Source: https://github.com/nmi-agro/Open-Bodem-Index-Calculator/blob/master/R/bodemconditiescore.R

Parameters

a_som_loi

number

crop_category

OmCropCategory

soiltype_n

OmSoiltypeN

Returns

0 | 1 | 2