calculate_spectral_index
Calculate NDVI, NDWI, NBR, or EVI for a specified area and date range, streaming public COG bands directly without API keys or registration.
Instructions
Autonomously stream satellite bands via Cloud-Optimized GeoTIFF HTTP range reads and compute a spectral index (NDVI, NDWI, NBR, or EVI) for an Area of Interest (AOI). Zero-config: Streams public COG bands via open HTTP range reads. No API keys or Copernicus account required.
Args: collection: Satellite collection name ('sentinel-2-l2a' or 'landsat-c2-l2'). index: Index name ('NDVI', 'NDWI', 'NBR', or 'EVI'). bbox: Bounding box [min_lon, min_lat, max_lon, max_lat] in WGS84. datetime_range: Target date or range (e.g. '2024-06-01/2024-06-30'). max_cloud_cover: Max allowed cloud cover percentage. Default is 15.0.
Returns: JSON string with summary statistics, pixel count, and ASCII spatial density visualization.
References:
Rouse et al. (1974), NASA SP-351, 1, 309-317.
Tucker, C. J. (1979). Remote Sensing of Environment, 8(2), 127-150. DOI: 10.1016/0034-4257(79)90013-0
McFeeters, S. K. (1996). International Journal of Remote Sensing, 17(7), 1425-1432. DOI: 10.1080/01431169608948714
Key, C. H., & Benson, N. C. (2006). USDA Forest Service RMRS-GTR-164-CD, pp. LA 1-55.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| index | Yes | ||
| collection | Yes | ||
| datetime_range | Yes | ||
| max_cloud_cover | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |