Repository navigation
feat: publish geographic year-map deployment bounds - #1281
Merged
Merged
Conversation
weited
reviewed
Oct 30, 2026
weited
left a comment
Contributor
There was a problem hiding this comment.
these files better to be hosted on ocean current own api
There was a problem hiding this comment.
🟡 Changes recommended
The completeness check validates only map IDs, allowing incomplete HTML with missing deployments to pass validation and overwrite previously published deployments.
1 open issue
What changed in this PR
Adds a geographic year-map JSON publisher alongside the existing Gliders catalogue pipeline, enabling frontend map rendering without runtime HTML parsing or GIF-based positioning.
Changes:
- Extracts deployment rectangles and calculates per-map geographic bounds, retaining null bounds when calibration fails.
- Adds source stability checks, schema validation, and atomic publication.
- Adds saved source fixtures, numeric references, tests, and usage documentation.
| File | Description |
|---|---|
ARGO/oceancurrent/test_gliders_yearmaps.py |
Tests parsing, calibration, validation, and publication safeguards. |
ARGO/oceancurrent/README.md |
Documents the JSON contract, calibration, and operation. |
ARGO/oceancurrent/publish_gliders_yearmaps.py |
Validates sources and atomically publishes the index. |
ARGO/oceancurrent/gliders_yearmaps.py |
Extracts rectangles and calculates geographic bounds. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/README.md |
Documents fixture provenance and reference calculations. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/frontend-reference.json |
Supplies frontend calibration results for parity checks. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/expected.json |
Defines expected bounds and null fallbacks. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/catalogue.json |
Supplies mission coordinates for calibration fixtures. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/2026_sl_temp_04d_nrt.html |
Provides the 2026 near-real-time Slocum source fixture. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/2025_sl_temp_04d.html |
Provides the 2025 Slocum source fixture. |
ARGO/oceancurrent/fixtures/gliders_yearmaps/2018_sg_temp_04d.html |
Provides the Seaglider fixture for insufficient-calibration handling. |
Review effort: Balanced
Comment on lines
+92
to
+94
| missing = {m["id"] for m in previous["maps"]} - {m["id"] for m in document["maps"]} | ||
| if missing: | ||
| raise ValueError("Previously published maps disappeared; review upstream completeness: " + ", ".join(sorted(missing))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Generate a new
gliders-yearmaps.jsoncontaining geographic bounding boxes for Gliders deployments, allowing the React frontend to render them directly in Mapbox without fetching or parsing legacy HTML files or loading GIF images to calculate their positions.Changes
gliders-catalogue.jsonto calculate geographic bounding boxes.Results
Validated against real CSIRO data:
The 39 successfully georeferenced deployments have calibration errors below 1 pixel.
Maps that cannot be reliably georeferenced retain
nullbounding boxes rather than using estimated coordinates.HTML Dependency
The frontend will consume the generated JSON instead of parsing HTML at runtime.
However, the generator still reads the original CSIRO HTML files on the server, as these currently provide the deployment rectangle positions and dimensions in pixels.
The existing mission catalogue provides geographic coordinates but not rectangle boundaries.
Eliminating HTML from the entire pipeline would require an alternative upstream source for this information.
Testing