ba2s - BSU program converts ascii text file to bsegy format (C-Language Version)
ba2s [ -h | infile | iorder | ncol | nrow | dt ]
Basic Seismic Utilities (BSU) converts an ASCII text file to BSEGY format. No geometry setting, just sample interval transfered to headers. Text file must consist of a matrix of values. The columns can be either channel or time axis. Rows can be either channel or time axis. One uses parameter iorder to select definition of columns and rows. The specification of number of rows and columns can not exceed number in file, but may be less than the actual values. Numbers must be separated by one or more space characters. BSEGY header limits trace length to a maximum (16bit=32767). C-Language Version.
Options
-h |
Online help giving details on command line arguments | ||
infile |
First argument is the input file name |
iorder (int)
Switch to select orientation of rows and columns.
0= rows are time axis, columns the channel axis.
1= columns are
time axis, rows are the channels axis.
ncol (int)
Number of columns.
nrow (int)
Number of rows.
dt (int)
Sample interval in microseconds.
NOTE:
If invoked with no options, will prompt user for input
parameters.
EXAMPLE:
ba2s 8800.txt 0 62 5000 1000
File 8800.txt is processed by ba2s. Rows are time axis, 62 columns (ie. channels). The number of samples per trace is 5000. Sample interval is 1000 microseconds.
xxxx.seg
where xxxx is the base name of input text file, ie. xxxx.txt
standard output
produces a progress bar
xxxx.lst
Echo check of input parameters in listing file.
bhelp(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. <paulmichaels@.boisestate.edu>