qualityFlag
Overview
qualityFlag flags or unflags multibeam bathymetry soundings in-place within OMG HDCS .merged files based on their beam quality factor (Q_factor). It is designed primarily for Honeywell ELAC BottomChart data (where Q_factor encodes a signal-to-noise ratio) and Reson SeaBat 8101 data (where Q_factor encodes brightness, collinearity, and amplitude/phase detection bits). Beams with quality values outside the specified [minquality, maxquality] range are marked as rejected (status = 22).
Usage
qualityFlag (-v) (-minquality 0) (-maxquality 2) merged_file(s)
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
<merged_file(s)> | <file1> [file2 ...] | required | One or more OMG HDCS .merged files to filter in-place. |
-minquality | <value> | 0 | Minimum acceptable quality factor; beams below this value are flagged with status = 22. |
-maxquality | <value> | 2 | Maximum acceptable quality factor; beams above this value are flagged with status = 22. |
-v | none | 0 | Enable verbose output. |
How It Works
- Header Inspection: Opens each
.mergedfile in read/write mode and readsOMG_HDCS_summary_headerto identifysummary.toolType. - Quality Evaluation: Iterates through every ping and beam, evaluating
beams[i].Q_factordirectly for ELAC data (where lower numbers1â2indicate higher SNR quality) or decoding brightness/collinearity bit flags forSeaBat_8101. - In-Place Flagging: Sets
beams[i].status = 22if the quality falls outside[minquality, maxquality]and writes the modified beam array back to the.mergedfile.
Practical Examples
Reject ELAC beams with quality factor worse than 3
qualityFlag -minquality 1 -maxquality 3 elac_line01.merged elac_line02.merged