GeoNeMo Sentinel-2 vessel detection#
Use the sensor-specific service workflow; do not stage, resample, or normalize collection bands. The service supports Sentinel-2 L1C and validated L2A products; preserve only the domain limitations returned for the exact run.
For a single Sentinel-2 scene, a ship-finding report defaults to the standard locally rendered image-overlay report, unless the user explicitly requests another format. “Ship finding report” and “vessel report” activate this path without requiring the word “visual”. A detection-only request does not require rendering. Honor an explicit table-only, CSV, or other format request. For viewing an existing completed local report, verify and serve its outputs using media retrieval and viewing; do not render again.
Managed collection stages#
For an assigned managed work_id, follow managed collection work
before the ordinary workflow below. Load the authoritative descriptor, perform only its assigned
stage, and return the persisted receipt. The GeoNeMo server owns enumeration, waits, retries, publication
recovery, rendering, and retained assets. Do not start an independent collection loop.
Resolve exactly one authoritative record. For a supplied run ID, exact-read status to obtain its source reference before the catalog read. If the user did not supply its collection and record ID, use
catalog_list_collectionsand a boundedcatalog_search, then confirm the selected hit withcatalog_get_record. For a supplied filename, usefilters: {"filename": "<exact name>"}with notext; a full.SAFEname intextalso resolves exactly. Verify the exact-readmetadata.filenameequals the requested name. Othertextqueries use literal catalog text matching. Use shared retrieval separately for similarity; its neighbors cannot authorize substituting another scene. Follow all cursors for filename matches; stop on ambiguity, and distinguish lookup errors from zero exact matches in the searched collection. Always exact-read a user-supplied record identity. Search results are discovery only. Reject exact product/platform metadata that contradicts Sentinel-2; never guess from a filename or use a search snippet as the record.If the user supplies an existing run or this task already has a completed detection, use its exact status from
vessel_detection_get_status, verify it is Sentinel-2 for the selected source, and reuse its unchanged result pages after success. Do not start another detection just to render or serve a report. Otherwise callsentinel_2_vessel_detection_startwith the exact unchangedcollection,record_id, and a stable caller-generatedidempotency_keyof 1–256 printable characters. It is project-scoped: the same key and request return the same run, while the same key with a different request conflicts. Do not select assets, paths, URLs, bands, models, thresholds, or GPU settings.If a required catalog or vessel tool is absent, or start reports that Sentinel-2 is unavailable, stop and report the exact error. Do not retry indefinitely or route to the Sentinel-1 tool.
Poll
vessel_detection_get_statusby run ID until the run is terminal. Honor returned retry guidance or wait five seconds; never busy-loop. Do not treat queued or running work as a result. OnSENSOR_MISMATCH,INCOMPLETE_PRODUCT,SOURCE_CHANGED, unsupported product, failure, or cancellation, stop and report the structured error; never stage or repair bands in the editor.On success, reuse the complete unchanged result pages if already available. Otherwise call
vessel_detection_get_resultwithlimit: 200, then follow each returnednext_cursoruntil it is null. Require stable run/source/model metadata, unique candidate IDs, and aggregate candidate count equal tototal. Report all vessel candidates, WGS84 geometry, score semantics, source and model provenance, and every returned limitation. On failure or cancellation, report the terminal state and structured error. Success withtotal: 0means zero retained candidates; failure or cancellation is unknown, never zero.For a report request without an explicit alternative format, create it in the user’s current workspace; do not call
vessel_detection_render_reportor leave the report hosted by the GeoNeMo server. After success and complete pagination, use the authorized GeoNeMo media manifest and download capabilities to retrieve the exact checksum-bound B04, B03, and B02 assets for the run’s collection, record, and source inventory. Store them beneath a new run-scoped workspace directory, verify every asset ID and SHA-256, and runscripts/render_vessel_report.py renderlocally with every unchanged result page. Keep the report directory, includingreport.html, images, manifest, and source inputs, under the agent user’s ownership. Read media retrieval and viewing before downloading: select the unique 10-metre measurement asset for each RGB band and preserve the verified download receipts. Always give the user a clickable local link to the generatedreport.html. The standard page provides the native B04-grid true-color image with center-safe hollow candidate circles, unrestricted pan/over-zoom, exact run/source/model metadata, and a complete searchable findings table whose rows navigate to source pixels. Candidate sheets remain bounded presentation aids. Never add, remove, or reclassify a candidate from image inspection. If authorized media retrieval, local dependencies, or rendering is unavailable, preserve the succeeded detector result and state that the requested report is incomplete, with the exact visualization error. A count, generic report, or table alone does not complete this request. Verify report artifacts and table coverage before claiming completion; when viewing is requested, have the host serve only the report output directory on localhost, check the working URL, and provide remote access instructions if needed.Call
vessel_detection_cancelonly when the user asks to stop the run.
When the user requests a durable Ship observation, validation, historical analysis, campaign
report, or publication, pass the exact succeeded run and every unchanged result page to
geonemo-ship-knowledge. Do not summarize or reshape the service result first.
Saved GKB findings have a separate GeoNeMo server presentation workflow. The bundled renderer also
accepts a validated saved artifact plus verified media receipts, without reconstructing result
pages or requiring the original detector run. See the Ship knowledge saved-finding reference;
ordinary agent reports retain the local result_pages workflow.
The service resolves all required multispectral assets from collection storage and owns format handling, band ordering, grid alignment, baseline correction, normalization, tiling, inference, seam merging, and georeferencing. Never fall back to a VLM, infer detections from RGB preview, or expose internal paths.
Read tool contracts for the exact public boundary and the worked example for the lifecycle and output semantics.