ssmock.f (mockss)
Description
ssmock.f is a Fortran 77 synthetic sidescan generator (program mockss, John Hughes Clarke, 1989) that forward-models the true 3D seafloor grazing angle for every cell in a 512Ã512 bathymetric DTM illuminated along an actual SeaMARC I or GLORIA sonar track, assuming straight-line acoustic propagation (atan(range / height)).
Interactive Inputs
enter bathy filenameâ 512Ã512 floating-point bathymetry array (rbathy,recl=2048).enter output mock filenameâ 512Ã512 floating-point synthetic grazing-angle array (rmock, initialized to-999.0).enter sidescan filenameâ Input SeaMARC I or GLORIA file containing track navigation (rlat,rlon), heading (head), and towfish depth (fdepth).enter top lat and left long of area (degrees)andenter grid spacing of data in metres.type of track?â1: SeaMARC I (1=5km,2=2km,3=1kmswath) or2: GLORIA MkIII (1=30s,2=20spulse repetition period).
Algorithm
- Interpolates the sonar track at half-grid-cell steps (
step = grid / 2) between consecutive pings. - Casts port and starboard across-track rays out to maximum horizontal swath half-width
hmax(2500/1000/500 mfor SeaMARC I;22500/15000 mfor GLORIA), tracking the minimum depression angle (minang) along each ray to mask acoustic shadow zones (rmock = 0.0in shadows). - For illuminated cells, calls
vectangle(ix, iy, ray, fdepth, rangle)to compute the 3D angle between the incident vector(range, height)and the local seafloor surface normal derived from 4-connected depth gradients, storingrangleinrmock(ix, iy). - Optionally exported to an 8-bit image via
to8bit.