ssi2glo
Description
ssi2glo is a utility designed to convert SSI (Side Scan International) ASCII format sidescan data to JCU GLORIA format. It reads sidescan data along with navigation and altitude information from an ASCII input file and converts it into GLORIA records.
Usage
ssi2glo -in <infile> -out <outfile>
Arguments
| Option | Description |
|---|---|
-in <infile> | Required. The input SSI ASCII format sidescan file. |
-out <outfile> | Required. The output JCU GLORIA format sidescan file. |
How It Works
- Read SSI Record: The tool reads SSI format records from the input ASCII file. Each line contains:
nosams: Number of samples.pixwid: Pixel width.easting,northing: Position.heading: Heading.altitude,depth: Altitude and depth.- Followed by
nosamsinteger values representing the sidescan data.
- Populate GLORIA Header: It populates the fields of the GLORIA record header:
lat,lon: Set tonorthingandeasting.small_pixel: Set topixwid.pixel_size: Set to 0.azi: Converted from degrees to radians.fishdepth: Set todepth.altitude: Set toaltitude.
- Convert Sidescan Data:
- It initializes
out_record.stbd_datato 255 (for unassigned pixels). - It then populates
out_record.port_dataandout_record.stbd_datausing thearrayvalues, guessing which way round the data is (port data from the first half ofarray, starboard data from the second half).
- It initializes
- Write GLORIA Record: The fully populated GLORIA record (
out_record) is written to the output file. - Loop: This process repeats until the end of the input SSI file.
- Report Bounds: After conversion, it prints the minimum and maximum northing and easting encountered.