glbeambin
Description
glbeambin is a utility that bins up empirical beam pattern data from a JCU GLORIA file across a series of depth windows. It processes the input GLORIA file and calculates the sum of pixel intensities and the count of pixels for port and starboard sides, within specific angle and depth bins. The output is a raw data table showing these accumulated sums and counts.
Usage
glbeambin <infile>
Arguments
| Option | Description |
|---|---|
<infile> | Required. The input JCU GLORIA file. |
How It Works
- Process Input File: The tool reads the input GLORIA file record by record.
- Binning: For each pixel in the sidescan data (port and starboard):
- It determines the
depth_binbased on thealtitudein the record header (altitude divided by 500 meters). - It calculates the
theta(angle) based on the pixelโs distance from nadir and the altitude. - It converts
thetato an integeritheta(angle bin). - The pixelโs intensity is added to
port_sum[itheta][depth_bin]orstbd_sum[itheta][depth_bin], andport_knt[itheta][depth_bin]orstbd_knt[itheta][depth_bin]is incremented.
- It determines the
- Output: After processing the entire file, the tool prints a formatted table to standard output. This table shows, for each angle bin (0-90 degrees) and each depth bin (0-19), the accumulated
port_sum,port_knt,stbd_sum, andstbd_knt.