patchTA
Description
patchTA composites and resamples a sequence of multibeam water-column .wcim Time-Angle files across a user-specified time window (-time_start to -time_end, or -time_start_1970 + -window_sec) into a single uniform-time-stepped 8-bit OMG1 (JHC_header) echogram.
CLI Options & Usage
patchTA -out <outfile> -import <file1.wcim> [<file2.wcim> ...] \
[-prime <template> | -time_start <yy/ddd/hh:mm:ss> -time_end <yy/ddd/hh:mm:ss> | \
-time_start_1970 <sec> -window_sec <sec>] \
[-norecs <cols>] [-back <val>] [-ignore <val>]
-out <outfile>: Output composite 8-bitOMG1water-column file.-import <*.wcim>: List of input.wcimfiles (whoseJHC_headerstoresstart_timeintlonandend_timeinblonas seconds since 1970).-time_start <str> -time_end <str>: Time window formatted asyyyy/ddd/hh:mm:ss(decoded viadecode_jultime()).-time_start_1970 <sec> -window_sec <sec>: Time window specified as epoch seconds and duration in seconds (default duration:3600 s).-norecs <cols>: Horizontal column dimension (xmax) of a newly created output file (default:3600).-prime <template>: Uses an existingOMG1fileβs dimensions and time bounds to initialize<outfile>.-back <val>/-ignore <val>: Background fill (255) and ignored pixel value (255).
Algorithm
- Initializes or loads
<outfile>withtlon = start_time,blon = end_time, and time stepdx = (end_time - start_time) / xmax. - For each imported
.wcimfile whose[tlon, blon]overlaps the target time window:- If the
.wcimfile has higher temporal resolution than<outfile>by a factor $\ge 2$, downsamples it along the time axis viadowngrade_image(). - Maps each target columnβs timestamp
out_timeinto the.wcimcolumn indexin_xand copies valid vertical samples into<outfile>.
- If the