Skip to main content

deriveBcsLabContext

@nmi-agro/fdm-source


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

Function: deriveBcsLabContext()

deriveBcsLabContext(soilData, cultivations, bcsYear): BcsLabContext

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

Derives a BcsLabContext from raw soil analysis data and cultivation history.

All internal derivations (crop plan fractions, soil type mapping) are handled here so callers only need to supply the collected raw inputs.

Parameters

soilData

BcsRawSoilData

cultivations

CultivationForCropPlan[]

bcsYear

number

Returns

BcsLabContext