mergeSB2K
Overview
mergeSB2K merges SeaBeam 2000 sidescan imagery (stored in GLORIA format) onto existing OMG HDCS .merged bathymetry files in-place. For each ping profile in the .merged file, it searches the GLORIA sidescan file by timestamp and populates beam 61 with the byte offset, sample count (1024), center pixel (512), and pixel size of the matching sidescan record so OMG tools can display sidescan alongside bathymetry.
Usage
mergeSB2K (-v) (-date year month day) (-base_offset value) -ss ss_file mergefile(s)
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
-ss | <ss_file> | required | Path to the GLORIA-format sidescan file. |
<mergefile(s)> | <file1> [file2 ...] | required | One or more OMG HDCS .merged files to update in-place. |
-v | none | 0 | Enable verbose output. |
-date | <year> <month> <day> | none | Override the reference date (summary.refTime) in the .merged summary header. |
-base_offset | <mm> | 0 | Integer base offset (in millimeters) added during processing. |
How It Works
- Header & Date Update: Opens the GLORIA sidescan file and each target
.mergedfile (r+). If-dateis supplied, updatessummary.refTimein the.mergedsummary header. - Time Matching & Beam Pointer Update: For each profile in the
.mergedfile, computes the absolute ping time, locates the closest GLORIA record usingjcu_time_search(), and stores the GLORIA recordβs file byte offset inbeams[61].offset,1024inbeams[61].no_samples,512inbeams[61].centre_no, andpixel_sizeinbeams[61].sample_interval.
Practical Examples
Link a GLORIA sidescan file onto a SeaBeam 2000 .merged file
mergeSB2K -v -ss line01.reflect line01.depth