This function calculates a simple organic matter balance, as currently used in agricultural practice in the Netherlands.For more details, see www.os-balans.nl

calc_sombalance(B_LU_BRP, A_SOM_LOI, A_P_AL, A_P_WA, M_COMPOST, M_GREEN)

Arguments

B_LU_BRP

(numeric) The crop code from the BRP

A_SOM_LOI

(numeric) The percentage organic matter in the soil (%)

A_P_AL

(numeric) The P-AL content of the soil (in mg P2O5 per 100g)

A_P_WA

(numeric) The P-water content of the soil (in mg P2O5 per Liter)

M_COMPOST

(numeric) The frequency that compost is applied (every x years)

M_GREEN

(boolean) measure. are catch crops sown after main crop (option: TRUE or FALSE)

Value

The estimated soil organic matter balance in kg EOS per ha per year. A numeric value.

Examples

calc_sombalance(B_LU_BRP = 1019,A_SOM_LOI = 4, A_P_AL = 35, A_P_WA = 40, 
M_COMPOST = 4, M_GREEN = TRUE)
#> [1] 600.757
calc_sombalance(1019,4, 35, 40, 4, TRUE)
#> [1] 600.757
calc_sombalance(c(256,1024,1019),c(4,5,6), c(35,35,35), c(40,42,45), c(4,4,3), c(TRUE,FALSE,TRUE))
#> [1] 1875.7570 -389.6340  620.4728