Description Usage Arguments Value References Examples
View source: R/spectral_indices.r
Calculate NDVI
1 |
df |
A data frame (or raster::brick) where columns (layers) represent reflectance measurements in a single wavelength, and columns (layers) are named following Quantalab's conventions. |
outp_fname |
In case the input is raster data, this is the optional output filename to write the result to |
... |
Arguments to be passed to get_band_of_wavelength, particularly band_txt, splitter, and i. |
A vector with the value of the index
Rouse et al. 1974
1 2 3 4 5 6 | ## Not run:
#Calculate the NDVI from a 6 band multispectral image
my_ms_data <- raster::brick('H:/FISE/forest/CanopyHealthMonitoring/PWN/flights_final/150727_mca/150727_mca.bsq')
my_NDVI <- CanHeMonR::NDVI(my_ms_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.