calculateBcs
@nmi-agro/fdm-source / fdm-calculator/src / calculateBcs
Function: calculateBcs()
calculateBcs(
scores,labContext?):BcsResult
Defined in: fdm-calculator/src/bcs/index.ts:103
Calculates the D_BCS weighted total and I_BCS normalized indicator.
D_BCS = 2×CC + 3×(RD + SC + EW + SS + pH + OM) + 1×GS − 2×P − 1×(C + RT) I_BCS = min(D_BCS / 40, 1.0)
Null/undefined field scores are treated as 0 (missing observation).
pH and OM BCS scores are derived internally from labContext when provided.
The result is floored at 0 — negative totals are not meaningful.