if (FALSE) {
# These examples require satellite imagery files (Landsat/Sentinel data etc.)
# Calculate multiple basic indices from directory
multi_indices <- calculate_multiple_indices(
spectral_data = "/path/to/sentinel/bands/",
indices = c("NDVI", "EVI", "SAVI", "MSAVI"),
auto_detect_bands = TRUE
)
# Comprehensive vegetation analysis from individual files
veg_analysis <- calculate_multiple_indices(
red = red_band, nir = nir_band, blue = blue_band,
indices = c("NDVI", "EVI", "ARVI", "GNDVI", "DVI"),
output_stack = TRUE,
region_boundary = "Iowa"
)
# Directory with custom band matching
stress_indices <- calculate_multiple_indices(
spectral_data = "/path/to/bands/",
indices = c("PRI", "SIPI", "NDRE"),
band_names = c("red", "green", "nir", "red_edge"),
output_stack = TRUE
)
}
Run the code above in your browser using DataLab