Nitrogen Immobilization Loss Calculation
Source:R/calc_N_immobilization_loss.R
calc_N_immobilization_loss.RdCalculates the amount of nitrogen immobilized by soil microorganisms based on soil fertility, oxygen availability, and drainage.
Usage
calc_N_immobilization_loss(
B = 50,
oxygen_availability = "Normal",
id_rag = 1,
greenhouse = FALSE,
E_residual = 0
)Arguments
- B
Soil fertility factor (B) representing the potential nitrogen mineralization.
- oxygen_availability
Oxygen availability level in the soil (e.g., "Normal", "Reduced", "Poor").
- id_rag
Soil drainage index (ID_Rag), ranging from 1 (well-drained) to 5 (poorly drained).
- greenhouse
Logical. If
TRUE, adds 2 kg/ha of nitrogen immobilization as per DPI 2026 foglio C&D (cella D23 "In serra = 2"). DefaultFALSE.- E_residual
Optional numeric. When the previous crop has negative residual N (e.g. maize stalks buried, sorghum) the DPI 2026 sums
-Einto D (see foglio C&D, cella I21 "E da conteggiare"). If provided and negative,-E_residualis added to D. Default0(no adjustment; E is handled separately incalculate_N_fertilization).
Details
This function uses lookup tables (ca.table and cb.table) from the NFert package
to determine the immobilization correction factor (fc_D) based on soil drainage and oxygen
availability. The nitrogen immobilization loss is then calculated as:
D = B * fc_D + 2 * (greenhouse) + max(0, -E_residual)