This function calculates the precipitation surplus (in mm / ha) given the crop rotation plan.

calc_psp(B_LU_BRP, M_GREEN)

Arguments

B_LU_BRP

(numeric) The crop code from the BRP

M_GREEN

(boolean) A soil measure. Are catch crops sown after main crop (optional, options: TRUE, FALSE)

Value

The estimated precipitation surplus (in mm / ha) depending on averaged precipitation and evaporation. A numeric value.

Examples

calc_psp(B_LU_BRP = 265, M_GREEN = TRUE)
#> [1] 220.993
calc_psp(B_LU_BRP = c(265,1019,265,1019), M_GREEN = rep(TRUE,4))
#> [1] 220.993 311.568 239.698 311.568