This function calculates the potential N leaching of a soil.

calc_nleach(
  B_SOILTYPE_AGR,
  B_LU_BRP,
  B_GWL_CLASS,
  D_NLV,
  B_AER_CBS,
  leaching_to
)

Arguments

B_SOILTYPE_AGR

(character) The type of soil

B_LU_BRP

(numeric) The crop code (gewascode) from the BRP

B_GWL_CLASS

(character) The groundwater table class

D_NLV

(numeric) The N supplying capacity of a soil (kg N ha-1 jr-1) calculated by calc_nlv

B_AER_CBS

(character) The agricultural economic region in the Netherlands (CBS, 2016)

leaching_to

(character) whether it computes N leaching to groundwater ("gw") or to surface water ("ow")

Value

The potential nitrogen leaching from the soil originating from soil nitrogen mineralization processes. A numeric value.

Examples

calc_nleach('dekzand',265,'GtIII',145,'Zuidwest-Brabant','gw')
#> [1] 4.495
calc_nleach('rivierklei',1019,'GtIV',145,'Rivierengebied','ow')
#> [1] 6.337698