getMainCultivation
@nmi-agro/fdm-source / fdm-agents/src / getMainCultivation
Function: getMainCultivation()
getMainCultivation(
cultivations,calendarYear):any
Defined in: fdm-agents/src/tools/fertilizer-planner/index.ts:41
Determines the main cultivation based on the "May 15th" rule. It searches for a cultivation that is active on May 15th of the given calendar year.
Parameters
cultivations
any[]
calendarYear
string
Returns
any