Skip to content

import_bag: write bathy to the Processed layer by default (+ --bathy-layer flag) (#85)#86

Merged
rolker merged 2 commits into
jazzyfrom
feature/issue-85
Jun 28, 2026
Merged

import_bag: write bathy to the Processed layer by default (+ --bathy-layer flag) (#85)#86
rolker merged 2 commits into
jazzyfrom
feature/issue-85

Conversation

@rolker

@rolker rolker commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

The offline import_bag (off-boat CUBE re-run) now writes bathy tiles to the
Processed layer by default — it previously hardcoded Draft. The full-bag
replay is the authoritative off-boat product (the live node writes Draft), so
it belongs in Processed, consistent with how --bs-store already writes
backscatter to Processed (#80). One import pass now yields Processed bathy +
Processed backscatter
from a sonar bag.

A --bathy-layer draft|processed flag overrides (default processed) — e.g.
to seed a draft from a bag.

Semantics

This broadens the bathy-store Processed layer from "externally produced grids" to
"the authoritative product: external grids or the off-boat CUBE re-run." The
marine_bathymetry_store doc + ADR-0002 are updated in the companion
unh_marine_autonomy#241.

Testing

  • colcon build clean; colcon test green: 394 tests, 0 failures; lint clean.
  • Smoke-tested: -h lists --bathy-layer; an invalid value errors cleanly;
    default is processed.
  • Pre-push review-code: 1 must-fix (a stale "bathy layer is Draft" comment) + 1
    suggestion (robust layer label) — both fixed.

Note

Behavior change: import_bag bathy output was Draft, now defaults to Processed.
Corrected backscatter still requires the cube#81 curve
(--backscatter-correction empirical --backscatter-curve); orthogonal to this.

Closes #85


Authored-By: Claude Code Agent
Model: Claude Opus 4.8 (1M context)

Claude Code Agent added 2 commits June 28, 2026 11:57
… flag (#85)

The offline full-bag CUBE replay is the authoritative off-boat product (the
live node writes Draft), so import_bag now writes bathy tiles to the Processed
layer by default, mirroring how --bs-store already writes backscatter to
Processed (#80). A --bathy-layer draft|processed flag overrides (e.g. to seed
a draft from a bag). One import pass now yields Processed bathy + Processed
backscatter.

Behavior change: import_bag bathy output was Draft, now defaults to Processed.
The broadened Processed-bathy semantics (authoritative = external grids OR the
off-boat CUBE re-run) is documented in the companion marine_bathymetry_store /
ADR-0002 update (unh_marine_autonomy).

Part of #85
Copilot AI review requested due to automatic review settings June 28, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rolker
rolker merged commit 0cd56d1 into jazzy Jun 28, 2026
1 of 2 checks passed
@rolker
rolker deleted the feature/issue-85 branch June 28, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

import_bag: write bathy to the Processed layer (off-boat CUBE re-run is authoritative)

2 participants