| calc_index | R Documentation |
Dynamically invokes the calculation function for any registered index by name.
calc_index(index, ...)
index |
Character string specifying index name (e.g., |
... |
Named band arguments (e.g., |
A SpatRaster or numeric vector.
calc_index("NDVI", nir = 0.8, red = 0.2)
calc_index("SAVI", nir = 0.8, red = 0.2, L = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.