tor4
Description
tor4 is a tcsh helper script that prepares the three floating-point array files required by weigh_grid from a single <prefix>.blank file created by make_blank -float.
For each <prefix> (or <prefix>.blank) passed on the command line, tor4 verifies that <prefix>.blank exists and copies it to:
<prefix>.r4â The output weighted-mean depth grid.<prefix>.r4_weightsâ The sum-of-weights accumulator array.<prefix>.r4_weight_depthâ The sum-of-weighted-depths accumulator array.
Usage
tor4 <prefix_or_blank_file> [...]
Example
# 1. Create a 2-meter floating-point blank mapsheet
make_blank -float bay_2m -boundsof merged/JD100/*.merged
# 2. Initialize the three .r4 files for weigh_grid
tor4 bay_2m.blank
# 3. Run weigh_grid
weigh_grid -beam_weight bay_2m merged/JD100/*.merged
[!CAUTION] Running
tor4on an existing grid prefix overwrites<prefix>.r4,<prefix>.r4_weights, and<prefix>.r4_weight_depthwith the empty.blankfile, wiping out any soundings previously gridded into that surface.