tomos
Description
tomos is a tcsh helper script that initializes the two 8-bit array files required by mos2 from a single <prefix>.blank file created by make_blank -8bit -prime 255.
For each <prefix> (or <prefix>.blank) passed on the command line, tomos verifies that <prefix>.blank exists and copies it to:
<prefix>.mosâ The 8-bit backscatter mosaic array.<prefix>.ranâ The 8-bit across-track range/weight priority buffer used for autoseaming overlapping swaths.
Usage
tomos <prefix_or_blank_file> [...]
Example
# 1. Create an 8-bit blank mapsheet primed to 255 (background)
make_blank -8bit -prime 255 bay_mos -boundsof_ss ss/JD100/*.ss
# 2. Initialize bay_mos.mos and bay_mos.ran
tomos bay_mos.blank
# 3. Mosaic sidescan lines with mos2
mos2 -swap_dirs ss/ merged/ bay_mos ss/JD100/*.ss
[!CAUTION] Always pass
-8bit -prime 255tomake_blankbefore runningtomos. If you omit-prime 255, the.mosand.ranarrays will be primed with0instead of255(MOS_BACKGROUND/RAN_BACKGROUND), which preventsmos2âs autoseaming logic from recognizing empty background pixels!