ssmock.for
Description
ssmock.for is the VAX/VMS Fortran 77 implementation of ssmock.f (program mockss, written by John Hughes Clarke, 1989) adapted for URI Graduate School of Oceanography RR (Dpict) R*4 bathymetry grids and VAX 256-longword (recl=256) unformatted sidescan records.
Key Differences from Unix ssmock.f
- RR
R*4Grid Loader (subroutine loadrrr4):- Reads a sequential unformatted file beginning with a 50-float header (
head(50)), followed by 512 rows stored bottom-to-top (j = 512, 1, -1) to invert the upside-downDpictcoordinate convention into top-down row order (rbathy(1..512, 1..512)). - Prompts the user for the flag value used for unknown data (e.g.,
99999.0) and replaces flagged cells with-999.0.
- Reads a sequential unformatted file beginning with a 50-float header (
- VAX Record Length Units:
- Opens unformatted direct-access files with
recl=256(256 four-byte longwords = 1024 bytes) for sidescan input andrecl=512(512 floats = 2048 bytes) forrmockoutput.
- Opens unformatted direct-access files with
- 3D Facet Grazing Angle (
subroutine vectangle):- Identical mathematical formulation to
ssmock.f, computing the true grazing angle90° - acos((a² + b² - c²) / (2ab))between the incident sonar ray and the local 3D seabed normal vector.
- Identical mathematical formulation to