DOCUMENTATION
SYNOPSIS
PROGRAM NAME: smooth2
AUTHOR: Juan Lorenzo
DATE: July 11 2016,
DESCRIPTION:
Version: 0.1
USE
NOTES
Examples
smooth2 < stdin n1= n2= [optional parameters ] > stdout
Required Parameters:
n1= number of samples in the 1st (fast) dimension
n2= number of samples in the 2nd (slow) dimension
Optional Parameters:
r1=0 smoothing parameter in the 1 direction
r2=0 smoothing parameter in the 2 direction
win=0,n1,0,n2 array for window range
rw=0 smoothing parameter for window function
efile= =efilename if set write relative error(x1) to
efilename
Notes:
Larger r1 and r2 result in a smoother data. Recommended ranges of r1
and r2 are from 1 to 20.
The file verror gives the relative error between the original velocity
and the smoothed one, as a function of depth. If the error is
between 0.01 and 0.1, the smoothing parameters are suitable. Otherwise,
consider increasing or decreasing the smoothing parameter values.
Smoothing can be implemented in a selected window. The range of 1st
dimension for window is from win[0] to win[1]; the range of 2nd
dimension is from win[2] to win[3].
Smoothing the window function (i.e. blurring the edges of the window)
may be done by setting a nonzero value for rw, otherwise the edges
of the window will be sharp.
CHANGES and their DATES
Build a list or hash
with all the possible variable
names you may use and you can even change them
subroutine clear
sets all variable strings to ''
subroutine n1
number of samples in the 1st (fast) dimension
subroutine n2
number of samples in the 2nd (slow) dimension
subroutine r1
smoothing parameter in the 1 direction
subroutine r2
smoothing parameter in the 2 direction
subroutine rw
smoothing parameter for window function
subroutine efile
efilename if set write relative error(x1) to
subroutine win
array for window range
subroutine
Warnings for programmers
packages must end with
1;