DOCUMENTATION
SYNOPSIS
PERL PROGRAM NAME: SUMAX - get trace by trace local/global maxima, minima, or absolute maximum
AUTHOR: Juan Lorenzo (Perl module only)
DATE:
DESCRIPTION:
Version:
USE
NOTES
Examples
SEISMIC UNIX NOTES
SUMAX - get trace by trace local/global maxima, minima, or absolute maximum
sumax <stdin >stdout [optional parameters]
Required parameters:
none
Optional parameters:
output=ascii write ascii data to outpar
=binary for binary floats to stdout
=segy for SEGY traces to stdout
mode=maxmin output both minima and maxima
=max maxima only
=min minima only
=abs absolute maxima only
=rms RMS
=thd search first max above threshold
threshamp=0 threshold amplitude value
threshtime=0 tmin to start search for threshold
verbose=0 writes global quantities to outpar
=1 trace number, values, sample location
=2 key1 & key2 instead of trace number
key1=fldr key for verbose=2
key2=ep key for verbose=2
outpar=/dev/tty output parameter file; contains output
from verbose
Examples:
For global max and min values: sumax < segy_data
For local and global max and min values: sumax < segy_data verbose=1
To plot values specified by mode:
sumax < segy_data output=binary mode=modeval | xgraph n=npairs
To plot seismic data with the only values nonzero being those specified
by mode=modeval:
sumax < segy_data output=segy mode=modeval | suxwigb
Note: while traces are counted from 1, sample values are counted from 0.
Also, if multiple min, max, or abs max values exist on a trace,
only the first one is captured.
See also: suxmax, supsmax
Credits:
CWP : John Stockwell (total rewrite)
Geocon : Garry Perratt (all ASCII output changed from 0.000000e+00 to 0.000000e+00)
(added mode=rms).
ESCI: Reginald Beardsley (added header key option)
based on an original program by:
SEP: Shuki Ronen
CWP: Jack K. Cohen
IFM-GEOMAR: Gerald Klein (added threshold option)
Trace header fields accessed: ns dt & user specified keys
CHANGES and their DATES
sub Step
collects switches and assembles bash instructions by adding the program name
sub note
collects switches and assembles bash instructions by adding the program name
sub clear
sub key1
sub key2
sub mode
sub outpar
sub output
sub threshamp
sub threshtime
sub verbose
sub get_max_index
max index = number of input variables -1