Learn R Programming

nightmares (version 0.0.2)

NPCRI: NPCRI - Normalized Pigment Chlorophyll Ratio Index

Description

NPCRI is an index that is associated with the chlorophyll content and can find applications in precission agriculture. Using the red and blue spectral bands, NPCRI captures the information needed to quantify chlorophyll and Nitrogen.

Usage

NPCRI(B, R)

Arguments

B

A raster layer object with the reflectance values for the Blue band.

R

A raster layer object with the reflectance values for the Red band.

Value

NPCRI - Normalized Pigment Chlorophyll Ratio Index.

References

https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data.

Examples

Run this code
# NOT RUN {
library(raster)
path_files <- system.file("extdata/", package="nightmares")
bands <- stack(list.files(path_files,".tif", full.names=TRUE))
x <- ref_oli(bands, sun.elev= 67.97)
NPCRI(x[[2]], x[[4]])

# }

Run the code above in your browser using DataLab