SE_WaterColumn β Multibeam Water Column Polar Fan & Time-Series Analysis Toolkit
SE_WaterColumn (code/SE/SE_WaterColumn.c, code/SE/SE_WaterColumn.h) is the primary interactive X11 water column visualization, target picking, and bottom-detection diagnostic engine in swathed. Authored by John E. Hughes Clarke (June 2005β2021) with contributions from Jonathan Beaudoin (compression, along-track stack filtering, .tgt target management) and Carlos Rubio (c_wcl_TOOLBOX target hunter and beam-pattern compensation), it renders 80-ping blocks of Kongsberg EM (.watercol, .kmall), Reson 7k, and Mesotech M3 water column datagrams (j_EM_watercolumn) alongside split-beam phase (.WC_Phase1/.WC_Phase2) and multi-detect (.extra) soundings.
Architecture & X11 Widget Layout (WaterColumn_widget)
Launched by clicking the WC icon (icon_window[16]) when -wc is enabled, make_WaterColumn_widget() creates "WaterColumn Analysis Toolkit" with 3 stacked graphics windows, 2 sliders, and 14 control buttons:
3 Stacked Graphics Windows
- Graphic 0 (
draw_WaterColumn/draw_WC2D,800Γ400or1000Γ400px):- Polar Fan / Beam-Time View (
draw_WaterColumn): Renders the scan-converted water column image (WCim_c[swath]or zoomedWCzoom[swath], generated byj_EM_combine_watercolumns()) in one of three projections (WC_View):PIE_DIAGRAM: True polar across-track distance vs. depth fan, corrected for transducer draft, heave, and roll.BEAM_TIME/ANGLE_TIME: Rectangular beam-index or pointing-angle vs. two-way travel time (TWTT) sample grid.
- Overlays physical WC bottom detections (
show_PHYS_BEAMS, green/blue/red crosses), bottom-tracker HD/extra soundings (show_BTRK_BEAMS, cyan/red crosses), minimum slant range $R_0$ (show_FIRST_TRACK, yellow crosses), BDI candidate peaks (show_BDI, blue crosses), PDI zero-crossing phase picks (show_PDI, red diamonds), split-beam phase snippet gates (show_PHASE), and georeferenced.tgtacoustic targets (show_TARGETS, yellow labeled diamonds). - 2D Along-Track Curtain (
draw_WC2D): When a.wc2dvertical profile file is loaded (-wc2d) and toggled (2key), displays the along-track ping-vs-depth echogram curtain (WC2D_fit/WC2D_zoom).
- Polar Fan / Beam-Time View (
- Graphic 1 (
draw_WC_TimeSeries,800Γ100px β Along-Beam Range Trace):- Plots the amplitude time series (
-64to+8dB) alongselected_beamfrom sample0toMAX_length_WC_TimeSeries, marking the real-time bottom pick (GREENcross),selected_WC_TWTT(REDvertical cursor), and optional split-beam phase (WHOLE_ping_WCP).
- Plots the amplitude time series (
- Graphic 2 (
draw_LowerSeries/draw_WC_AngleSeries/draw_WC_SwathSeries,800Γ100px β Across-Beam Constant-TWTT Slice):- Plots amplitude (dB) across all receive beam pointing angles (
-90Β°to+90Β°) at the fixed range sampleselected_WC_TWTT, color-coded by transmit sector (Tx_sector_no), or switches to along-track swath series (show_SWATH_SERIES).
- Plots amplitude (dB) across all receive beam pointing angles (
Sliders & 14 Control Buttons
| Control | Label | Function / Backing Variable |
|---|---|---|
Slider 0 | WC wrap (8bit) | Adjusts dynamic range offset (WC_wrap_8bit, -128 to +128) passed to j_EM_combine_watercolumns(). |
Slider 1 | WC Compression | Sets wavelet/DCT compression ratio (watercolumn_compression_factor, 1 to 100) for compress_watercolumn(). |
Button 0 | BTRK beams | Cycles show_BTRK_BEAMS (0..3) to overlay .merged bottom-tracker soundings (with optional $\pm 1$ ping sync offset diagnostics). |
Button 1 | PHYS beams | Cycles show_PHYS_BEAMS (0..3) to overlay WC telegram bottom picks and .extra multi-detects. |
Button 2 | 3D Widget | Opens the OpenGL 3D water column veil and point-cloud viewer (SE_3D). |
Button 3 | Before R0 | Toggles whether_to_suppress_after_1st_arrival to blank echoes beyond the minimum slant range $R_0$ (WC_first_arrival). |
Button 4 | Finish Calc. | Calls finish_WC_loading() to complete background scan-conversion of all 80 swaths in the current block. |
Button 5 / 6 | Load Gains / Dump_Gains | Reads or writes per-sector transmit gain offsets and sector/swath mute masks (Sector_Gains[3][9], Sector_OnOff[3][9]) to WC_gains. |
Button 7 | First Track | Toggles show_FIRST_TRACK ($R_0$ minimum slant range arc, corrected for inter-sector tx_time_offset). |
Button 8 | Targets | Toggles show_TARGETS and loads <line>.tgt files (WC_load_target_files()). |
Button 9 | Filter | Toggles WC_show_filtered (filter_wc(), calc_filt()) to average linear intensity across a running WC_filt_window (default 5-ping) stack. |
Button 10 | Target Hunt | Launches Carlos Rubioβs automated water column target detector (target_widget in c_wcl_TOOLBOX). |
Button 11 | BDI Track | Launches the Bottom Detection Indicator toolkit (SE_BDI_DP). |
Button 12 | Amp/Phase | Toggles show_wcp between water column amplitude (WCim_c) and split-beam differential phase (WCPim_c) polar fan display. |
Button 13 | PDI Track | Launches the Phase Detection Indicator toolkit (SE_PDI_LA). |
Interactive Target Picking & Zoom Controls
- Left-drag in Graphic 0: Rubber-bands a spatial zoom window and re-renders full-resolution polar pixels via
process_WaterColumn_Zoom(); pressingrresets to full swath view. - Middle-click in Graphic 0: Converts clicked $(x, z)$ coordinates via
find_beam_and_twtt()to select the exactselected_beamandselected_WC_TWTTsample, updating Graphic 1, Graphic 2,SE_BDI_DP, andSE_PDI_LA. - Target Management (
WC_add_target,WC_remove_target,WC_jump_to_next_target): Pressingaadds a georeferencedOMG_Targetat(selected_swath, selected_beam, selected_WC_TWTT)and writes<line>.tgt;ddeletes the nearest target;njumps to the next target along the survey line;</>tracks a moving target across adjacent pings (WC_move_target_in_time()).