unravelSB2100
Overview
unravelSB2100 converts raw SeaBeam 2100 (SB2100) multibeam files containing PR (Parameter), TR (Text), DR (Depth), and SS (Sidescan) records into OMG HDCS v3 .merged bathymetry files (toolType = SB2100, up to 151 beams) and companion .merged.ss_data raw sidescan trace files.
Usage
unravelSB2100 (-v) (-declin 10) (-no_abort) infile
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
<infile> | <path> | required | Positional argument specifying the input SeaBeam 2100 file. Outputs <infile>.merged, <infile>.ss, and <infile>.merged.ss_data. |
-v | none | 0 | Enable verbose output (prints full contents of PR, TR, DR, and SS records; otherwise prints single-character progress codes P, T, D, S). |
-declin | <degrees> | 0.0 | Magnetic declination offset in degrees added to dr.TX_heading before storing profile.vesselHeading. |
-no_abort | none | 0 | Increment override_abort so the parser continues past non-fatal record format errors. |
How It Works
- Start-of-Frame Scanning: Scans the input file using
jSB2100_find_next_SOF(infile, ID)to locate 2-character record identifiers:PR(Parameter Record): Read viajSB2100_read_parameter_record().TR(Text Record): Skipped or printed when-vis active.DR(Depth Record): Read viajSB2100_read_depth_record()intodrand marksgot_depth.SS(Sidescan Record): Read viajSB2100_read_sidescan_record()intosr. If a depth record has been read (got_depth), invokesdump_swath().
- Swath & Sidescan Output (
dump_swath):- Appends raw sidescan pixel pairs (
sr.no_pixels * 4bytes) to<infile>.merged.ss_dataand records the byte offset inss_offset. - Applies any
-declinmagnetic declination correction todr.TX_heading(wrapping into[0, 360)), populatesOMG_HDCS_profile_header(attitude, gain, pulse width, surface sound velocity), and writes 151OMG_HDCS_beamstructures with calibrated backscatter and across-track/along-track offsets to<infile>.merged.
- Appends raw sidescan pixel pairs (
Practical Examples
Convert a SeaBeam 2100 raw file with a 12.5-degree magnetic declination correction
unravelSB2100 -declin 12.5 sb2100_line01.raw
This creates sb2100_line01.raw.merged and sb2100_line01.raw.merged.ss_data.