sumbeambin.f (sumbeambin)
Description
sumbeambin.f is a Fortran 77 utility (John Hughes Clarke, December 1989) that reads depth-stratified empirical beam histogram files (ps89_<pass>.beam_bin, produced by glbeambin) across multiple GLORIA passes, accumulates sample counts and amplitude sums across 91 grazing-angle bins (0°â90°) and 20 water-depth bins (0â10,000 m in 500 m increments), and outputs 20 depth-specific .beam_pattern files (ps89_025.beam_pattern through ps89_975.beam_pattern) for use by glbeam_bydepth.
Usage & Interactive Prompts
sumbeambin
Interactive prompts:
enter number of beam patterns to sumâ Number of passesn(up to 100).enter pass numbersâ List of 3-character pass IDs (pass(k)), reading/u/jhc/data/sopac/gloria/ps89_<pass>.beam_bin.
Algorithm
- For each pass
k, reads 20 depth blocks (j = 1..20) of 91 grazing-angle rows (i = 1..91):port_no,port_sum,stbd_no,stbd_sumin(4(i9,2x))format. - Accumulates total sample counts (
tport_no,tstbd_no) and DN sums (tport_sum,tstbd_sum) for every(angle, depth)bin. - Computes the mean DN for each bin (
port_ave = tport_sum / tport_no,stbd_ave = tstbd_sum / tstbd_no) and the multiplicative gain factor normalized to mid-grey (128.0 / ave, or1.0where count is zero). - Writes 20 output files named
ps89_<depth>.beam_pattern(025,075, âĻ,975, representing bin center depths from250 mto9750 min tens of meters).