mergePick
Overview
mergePick linearly interpolates digitized seismic/sub-bottom reflector picks (from an interactive pick file) across all records of an ASCII multi-horizon seismic pick table (such as the .picks file generated by upsegy) and writes the interpolated horizon into a selected trace column (-p <0..8>) in-place.
Usage
mergePick [-v] [-s] [-p trace_index] [-c count] [-t threshold] infile outfile
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
<infile> | <path> | required | First positional argument: input ASCII digitized pick file (containing image width, length, dummy integer, nopicks, and nopicks pairs of record_index depth_sample). |
<outfile> | <path> | required | Second positional argument: target 12-column ASCII .picks file (lat lon bottom trace[0..8]) updated in-place (r+). |
-p | <0..8> | 0 | Index of the horizon trace column (trace[choice]) to overwrite with the interpolated picks. |
-s | none | 0 | Enable showpick_flag. |
-c | <count> | 10 | Set record count parameter. |
-t | <threshold> | none | Set floating-point threshold parameter. |
-v | none | 0 | Enable verbose output. |
How It Works
- Pick & Table Ingestion: Reads image dimensions (
width,length) andnopickscontrol points(pick[1][i], pick[0][i])frominfile. Then reads allnum_recrows oflat lon bottom trace[0..8]fromoutfile, verifying thatnum_rec == length. - Linear Interpolation: For each ping
j(0 .. num_rec - 1), locates the bracketing digitized picksbeforeandafter, computes the linear weight(j - pick[1][before]) / (pick[1][after] - pick[1][before]), and stores the interpolated sample depth innew_bat[j]. - In-Place Update: Rewinds
outfile, assignstrace[choice][j] = (int)new_bat[j], and rewrites allnum_rec12-column rows.
Practical Examples
Merge digitized reflector picks into horizon slot 1 of a .picks file
mergePick -v -p 1 reflector1.dig chirp_line01.picks