View source: R/geo_index_all.R
| geo_index_all | R Documentation |
Automatically detects which spectral indices can be computed given the available
bands in a terra::SpatRaster image (or raster file path) and calculates all of them.
geo_index_all(
image,
bands = NULL,
scale_factor = NULL,
sensor = NULL,
quiet = FALSE,
...
)
image |
A |
bands |
Optional named vector or list specifying custom band mapping. |
scale_factor |
Optional numeric scaling divisor (e.g. |
sensor |
Optional character string specifying a sensor preset. |
quiet |
Logical. If |
... |
Additional parameters passed to index calculation functions. |
A multi-layer terra::SpatRaster containing all computable indices
as individual layers.
img <- get_example_data()
# Compute all supported indices compatible with img bands
all_idx <- geo_index_all(img)
names(all_idx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.