calculateNitrogenBalance
@svenvw/fdm-source / fdm-calculator/src / calculateNitrogenBalance
Function: calculateNitrogenBalance()
calculateNitrogenBalance(
nitrogenBalanceInput
):Promise
<NitrogenBalanceNumeric
>
Defined in: fdm-calculator/src/balance/nitrogen/index.ts:35
Calculates the nitrogen balance for a set of fields, considering nitrogen supply, removal, and volatilization.
This function takes comprehensive input data, including field details, fertilizer information, and cultivation practices, to provide a detailed nitrogen balance analysis. It processes each field individually and then aggregates the results to provide an overall farm-level balance.
Parameters
nitrogenBalanceInput
The input data for the nitrogen balance calculation, including fields, fertilizer details, and cultivation details.
Returns
Promise
<NitrogenBalanceNumeric
>
A promise that resolves with the calculated nitrogen balance, with numeric values as numbers.
Throws
Throws an error if any of the calculations fail.