ahmilb@houu64$bhpintegrate
BHPINTEGRATE - Calculate the area of a peak or trough
at a user-specified time
bhpintegrate < stdin > stdout [options]
Required Parameters:
None
Optional parameters:
mode=point point: Get Z from header, find P1,P2
edge: Get P1,P2 from header, find Z
Z=sut Trace header containing peak/trough time(ms)
A=d2 Trace header in which to store calculated area
L=f1 Trace header in which to store width(ms) of peak/trough
H=f2 Trace header in which to store amplitude at peak/trough
P1=igc Trace header in which to store point m1 (ms)
P2=igi Trace header in which to store point m2 (ms)
P3=corr Trace header in which to store peak/trough point (ms)
type=peak peak or trough
search=3 In point mode, the number of samples to search each side
of Z to insure peak or trough is found
In edge mode, the number of samples to search each side
P1 and P2 to insure min or max is found
limit=25 Maximum distance to search each side of peak/trough
for an upturn or downturn
enforce=yes Ensure that upturns are negative for type=peak, and that
downturns are positive for type=trough, unless the limit
number of samples have been reached on an edge search
nval=-999.25 Z NULL value; set L, A to zero
Notes:
The limit parameter is unused in edge mode. Once the edges
are found, the peak or trough is found as the maximum/minimum
within the edges. Also, in edge mode, if search=0, then the edges
are taken exactly as given in the P1, P2 trace headers.