Skip to main content

derivePhBcs

@nmi-agro/fdm-source


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

Function: derivePhBcs()

derivePhBcs(d_ph_delta): 0 | 1 | 2

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

Derives a BCS pH score (0–2) from a D_PH_DELTA value.

D_PH_DELTA = max(0, pH_optimum − A_PH_CC) as computed by the OBIC calc_ph_delta. Replicates: bcs_ph = round(ind_ph(D_PH_DELTA) × 2) where ind_ph(x) = 1 − evaluate_logistic(x, b=9, x0=0.3, v=0.4, increasing=TRUE)

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

Parameters

d_ph_delta

number

Returns

0 | 1 | 2