bbal

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

bbal - BSU program scales two data sets so that they have the same MAV (C-Language Version)

SYNOPSIS

bbal [ -h | infile1 | infile2 | iopt ]

DESCRIPTION

Basic Seismic Utilities (BSU) computes the Mean Absolute Value (MAV) of two data sets on either a trace by trace, or profile basis. Then, each data set is rescaled to the average of the two data set MAV’s. C-Language Version.

Options

-h

Online help giving details on command line arguments

infile1 (char)

Input file name

infile2 (char)

Input file name

iopt (int)

Switch to choose profile or trace mode.

0=profile mode

1=trace mode

NOTE:
If invoked with no options, will prompt user for input parameters.

EXAMPLE:
bbal w001.seg w002.seg 1

File the MAV for each trace in each data set is computed (say MAV1 and MAV2 for the i_th trace) Then each trace is rescaled so that their respective new MAV values become (MAV1+MAV2)/2.

FILES

bbalxxxx.seg

named according to convention (first 4char bbal, the next 4char are the first 4char of the input file name, suffix .seg). There will be two of these data sets, and one must take care with the names of the input (SEE BUGS BELOW).

standard output

produces a progress bar

bbalxxxx.lst

Echo check of input parameters in listing file.

SEE ALSO

bhelp(1), mav(3)

BUGS

no known bugs, BUT, the file name convention can be a problem if the first 4 characters of each data name are the same. For example, if one were to run the following:

bbal twav0001.seg twav0002.seg 1

Then the output data sets would both have the same name, with one being written over with the other (ie. output name would be bbaltwav.seg for both).

COPYRIGHT

Copyright © 2017 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.

AUTHOR

P. Michaels, PE. <pm@cgiss.boisestate.edu>