Detect vessels#
Vessel detection is an optional pack (the maritime pack). It is available only on a server
that mounts it; check discovery for the vessel_detection capability first.
Start a detection run on one Sentinel-1 or Sentinel-2 catalog record, poll it, and read the detections.
Prerequisites#
A server with the maritime pack, and
geonemo-maritime-clientinstalled for Python. From a checkout:pip install ./contracts/client ./packs/sentinel/client ./packs/maritime/client.tools:executeto start and cancel runs,services:readto read them.An exact catalog collection and record ID (Search the catalog).
MCP tools:
sentinel_1_vessel_detection_start,sentinel_2_vessel_detection_start,vessel_detection_get_status,vessel_detection_get_result,vessel_detection_render_report,vessel_detection_cancel.
Steps#
Start a run with an idempotency key. Pass only the unchanged collection and record ID:
from geonemo.client import CollectionRecordRef from geonemo.packs.maritime.client.vessel_detection import ( VesselDetectionClient, ) vessels = VesselDetectionClient(transport=client.transport) run = vessels.start_sentinel2( CollectionRecordRef(collection="imagery", record_id="scene-001"), idempotency_key="s2-scene-001", )
REST:
POST /v1/vessel-detection/sentinel-2/runs(orsentinel-1) with{"source": {"collection": ..., "record_id": ...}}and anIdempotency-Keyheader. The response is HTTP 202.Poll until the status is terminal (
succeeded,failedorcancelled):run = vessels.get_status(run.id) print(run.status, run.phase)
REST:
GET /v1/vessel-detection/runs/{run_id}.Read every result page after success:
result = vessels.get_result(run.id, limit=200)
REST:
GET /v1/vessel-detection/runs/{run_id}/result?limit=200, continuing withcursor. Keep the returned provenance, scores and limitations with the detections.Optionally render a visual report (
render_report,POST .../visual-report) or cancel (cancel,POST .../cancel).
Result#
Skill resources can still load when the API or GPU workers are unavailable, so seeing the skills does not prove detection is enabled; check the tools and discovery. A failed or cancelled run is an unknown outcome, never zero detections.
Failure |
Meaning |
|---|---|
|
An incomplete or not-ready product manifest: the record needs ingestion or repair |
|
The source changed during the run |
Sensor not enabled |
Start refused the sensor; do not switch sensors |
See Vessel detection API and the maritime skills in Install and use skills.