Estimate Nitrogen Rate using Holland & Schepers Method
Source:R/estimate_N_rate_from_holland_schepers.R
estimate_N_rate_from_holland_schepers.RdThis function estimates nitrogen (N) application rates based on NDVI values using the Holland & Schepers (H&S) algorithm. It calculates a sufficiency index (SI) for each pixel in the NDVI raster, then adjusts a base N rate to determine the recommended N dose.
Value
A list containing:
dose_raster: RasterLayer with estimated N rates (kg/ha)
sufficiency_index_raster: RasterLayer with calculated sufficiency indices
Examples
if (FALSE) { # \dontrun{
library(raster)
# Load NDVI raster (replace with your data)
ndvi_raster <- raster(system.file("extdata/sample_ndvi.tif", package = "yourpackage"))
# Calculate N rates with plotting
result <- estimate_N_rate_from_holland_schepers(ndvi_raster, base_N_rate = 60)
# Visualize results
plot(result$dose_raster, main = "Recommended N Rates")
plot(result$sufficiency_index_raster, main = "Sufficiency Index")
} # }