environmentaltools.download.calculate_vegetation_indices
- environmentaltools.download.calculate_vegetation_indices(image: ee.Image) ee.Image[source]
Calculate vegetation and moisture indices for salt marsh analysis.
Computes three key indices from Sentinel-2 bands: - SAVI: Soil-Adjusted Vegetation Index (reduces soil background effects) - MSI: Moisture Stress Index (indicates plant water stress) - LSWI: Land Surface Water Index (detects surface water content)
- Parameters:
image (ee.Image) – Sentinel-2 image with B4 (Red), B8 (NIR), and B11 (SWIR1) bands.
- Returns:
- Image with selected bands (B4, B8, B11) plus calculated
indices (SAVI, MSI, LSWI) and QA60 quality band.
- Return type:
ee.Image
Note
SAVI uses L=0.5 for moderate vegetation coverage typical in salt marshes.
Example
>>> sentinel_image = ee.Image("COPERNICUS/S2_HARMONIZED/...") >>> with_indices = calculate_vegetation_indices(sentinel_image)