testNONORTHO
Overview
testNONORTHO is an interactive command-line diagnostic utility written by John E. Hughes Clarke (November 2000) to test and verify 3D non-orthogonal transmit/receive cone intersection geometry (calc_nonorthogonal_cones_010 from j_non_ortho_cones).
In multibeam echosounders where the transmit line array and receive line array are mounted on separate hull frames, tilted separately, or evaluated at distinct transmit and receive instants (dynamic motion between transmit and receive), the transmit and receive acoustic cones are no longer mutually orthogonal. testNONORTHO allows interactive entry of arbitrary mounting angles, instantaneous platform orientations, and steering angles to inspect the resulting 3D unit beam vector $(X, Y, Z)$ and geographic azimuth/depression angle in the local-level reference frame.
Usage
testNONORTHO [-v]
Interactive Prompts
When executed, testNONORTHO enters a loop prompting for six sets of angles (in degrees) from stdin:
- Transmit array mount angles:
Tx_mount.roll,Tx_mount.pitch,Tx_mount.yaw - Receive array mount angles:
Rc_mount.roll,Rc_mount.pitch,Rc_mount.yaw - Instantaneous vessel orientation at Transmit:
Tx_orient.roll,Tx_orient.pitch,Tx_orient.yaw - Instantaneous vessel orientation at Receive:
Rc_orient.roll,Rc_orient.pitch,Rc_orient.yaw - Conical steering angles:
cone_pitch(transmit fore-aft steering angle) andcone_roll(receive port-starboard steering angle)
Computation & Output
- Sets
ortho_calc_type = MB_NONORTHOand setsLL_beam_vect.x = -999.0to enable verbose internal step-by-step debug output insidej_non_ortho_cones. -
Calls:
calc_nonorthogonal_cones_010(Tx_mount, Rc_mount, Tx_orient, Rc_orient, &LL_beam_vect, (float)cone_pitch, (float)cone_roll); - Converts the returned local-level Cartesian beam unit vector
(LL_beam_vect.x, LL_beam_vect.y, LL_beam_vect.z)into spherical coordinates:- $\text{Azimuth} = \text{atan2}(Y, X) \times \frac{180}{\pi}$
- $\text{Radial} = \sqrt{X^2 + Y^2}$
- $\text{Depression} = \arctan\left(\frac{Z}{\text{Radial}}\right) \times \frac{180}{\pi}$
-
Prints the Cartesian components and derived azimuth and depression angles:
X <x> Y <y> Z <z> -- azi <deg> dep <deg>
Architectural Role
testNONORTHO serves as the standalone mathematical verification harness for j_non_ortho_cones.c and SYN_NONORTHO.c, which underpin both 3D cone intersection visualization in synSwath and operational multibeam re-pointing in repoint.