bcar - BSU program applies a box car type filter (either as smoother or high-pass )
bcar [ -h | infile | isign | ntimes | twide ]
Basic Seismic Utilities (BSU) applies a "box car" (running average) filter to smooth data stored in BSEGY format. One has the option of also subtracting the smoothed result from the original data (giving a high-pass response). The process can be applied recursively a number of times. If done more than a single time, there will be two possible high-pass options (smooth the data ntimes before subtracting from the original, or smooth and subtract, ntimes). The frequency domain equivalent of the box car is a sinc function (sinx/x). One possible use of this program is the smoothing of features extracted from seismic data, as well as filtering seismic data itself. This would require another program that would write features as seismic traces. Alternatively, one may use the function c_boxit.c in sublib4 to do this smoothing in a user written program. C-Language Version.
Options
-h |
Online help giving details on command line arguments | ||
infile |
Input file name | ||
isign |
Switch to direct the filter process |
-1= box car low-pass (equivalent to sinc^ntimes in frequency domain)
0= high-pass (equivalent to 1 - sinc^ntimes in frequency domain)
+1= high-pass (equivalent to (1-sinc)^ntimes in frequency domain)
ntimes |
Number of times to apply the filter in a single run. | ||
twide |
Width of box car in time (seconds) |
NOTE:
If invoked with no options, will prompt user for input
parameters.
EXAMPLE:
bcar w001.seg -1 1 .05
File w001.seg traces are smoothed once by a box car smoother, width of .05 seconds.
bcaryyyy.seg
named according to convention (first 4char bcar, the next 4char are the first 4char of the input file name, suffix .seg)
standard output
produces a progress bar
bcaryyyy.lst
Echo check of input parameters in listing file.
bhelp(1), c_boxit(3), bagc(1)
no known bugs
Copyright © 2024 by Paul Michaels
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
P. Michaels, PE. <[email protected]>