MODIS vegetation index at a point
get_vegetation_indexRetrieve NDVI and EVI vegetation indices for any coordinate from NASA MODIS to monitor crop health, track deforestation, or assess drought conditions over custom date ranges.
Instructions
NASA MODIS MOD13Q1 NDVI and EVI vegetation index at any coordinate.
NDVI (Normalized Difference Vegetation Index) ranges -1 to 1. Higher values indicate denser healthy vegetation. EVI is more sensitive in high-biomass areas. The composite period is 16 days at 250m resolution. Useful for farm monitoring, deforestation tracking, and drought checks. Examples:
get_vegetation_index(15.58, 121.0) # last ~90 days at a point in Isabela get_vegetation_index(15.58, 121.0, "2026-08-01", "2026-08-15") # a fixed 15-day window
On failure: both MODIS bands failing returns data_status "unavailable", upstream_error true, samples [], and both band errors in caveats. One band failing still returns the other band's samples, but data_status stays "unavailable" with upstream_error true. A band whose rows carry no numeric value counts as that band failing. A pixel with no composite in range, such as one over water, is a real success with samples []. A latitude or longitude out of range returns data_status "invalid_request", with validation_error true and samples []. A start_date or end_date that does not parse as YYYY-MM-DD, or a span over 366 days, also returns data_status "invalid_request", checked before any fetch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | ISO date (YYYY-MM-DD). Defaults to today. | |
| latitude | Yes | Decimal degrees, WGS84. | |
| longitude | Yes | Decimal degrees, WGS84. | |
| start_date | No | ISO date (YYYY-MM-DD). Defaults to ~90 days ago. The span from start_date to end_date cannot exceed 366 days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||