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:

  1. <prefix>.r4 — The output weighted-mean depth grid.
  2. <prefix>.r4_weights — The sum-of-weights accumulator array.
  3. <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 tor4 on an existing grid prefix overwrites <prefix>.r4, <prefix>.r4_weights, and <prefix>.r4_weight_depth with the empty .blank file, wiping out any soundings previously gridded into that surface.