Skip to main content

Satellite Imagery Processing

Satellite imagery processing is the third compute type on Hive. It integrates with Element84 Earth Search (STAC API) for Sentinel-2 L2A scene discovery — free, anonymous, no API key required.

Endpoints

Search scenes

GET /v1/imagery/scenes?cell={h3_cell}&from={date}&to={date}&cloud={max%}&limit={n}
curl "https://gns-browser-production.up.railway.app/v1/imagery/scenes?cell=871e9a0ecffffff"

Returns recent Sentinel-2 scenes with cloud cover, thumbnails, and band URLs.

NDVI calculation

GET /v1/imagery/ndvi?cell={h3_cell}&from={date}&to={date}
curl "https://gns-browser-production.up.railway.app/v1/imagery/ndvi?cell=871e9a0ecffffff"

Response:

{
"sceneId": "S2A_33TTG_20260406_0_L2A",
"datetime": "2026-04-06T10:09:32.136000Z",
"h3Cell": "871e9a0ecffffff",
"meanNdvi": 0.46,
"minNdvi": 0.31,
"maxNdvi": 0.61,
"healthStatus": "moderate",
"cloudCover": 13.49,
"description": "Moderate vegetation health. Some areas may need attention.",
"processingMs": 336
}

Generic processing

POST /v1/imagery/process
{
"operation": "ndvi",
"h3_cell": "871e9a0ecffffff",
"date_from": "2026-03-01",
"date_to": "2026-04-08"
}

Operations

OperationDescriptionPhase 5a (current)Phase 5b (future)
ndviVegetation health indexMetadata-based estimatePixel-level B04/B08 bands
cloud_maskCloud cover assessmentScene metadata %SCL band classification
scene_searchFind recent clear scenesSTAC API querySame + local scene cache
atmospheric_correctionRemove atmospheric effectsL2A pre-correctedCustom processing

NDVI health classification

NDVI RangeStatusDescription
≥ 0.6HealthyDense, healthy vegetation. Strong canopy vigor.
0.4–0.6ModerateModerate health. Some areas may need attention.
0.2–0.4StressedVegetation stress. Possible water deficit or disease.
< 0.2BareMinimal vegetation. Urban area or bare soil.

Compound jobs with imagery

The most powerful pattern combines satellite data with AI analysis and map visualization:

{
"steps": [
{"id": "scan", "type": "image_process", "operation": "ndvi",
"context": {"h3_cell": "871e9a0ecffffff"}},
{"id": "analyze", "type": "inference", "depends_on": "scan",
"messages": [{"role": "user", "content": "Analyze this NDVI data for olive grove health"}]},
{"id": "map", "type": "tile_render", "depends_on": "analyze",
"center_cell": "871e9a0ecffffff", "zoom": 14, "style": "satellite"}
]
}

Tested result: 1.9 seconds total, 0.0011 GNS, one cryptographic proof.

Data source

Sentinel-2 L2A scenes via Element84 Earth Search STAC API. Free access, no API key required. Scenes updated every 5 days per location, 10m resolution.