bhed

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

bhed - BSU program to Up or Down load bsegy headers To or From an ASCII text file

SYNOPSIS

bhed [ -h | infile | header_file | iupdn ]

DESCRIPTION

Basic Seismic Utilities (BSU) uses namelist for common shot related data, and ascii text lines for each receiver channel. This program should be used with common shot gather data sets. The best way to observe the format of the text file is to download from an existing *.seg data set. The format of each geophone line in the file is shown below the options section.

Options

-h

Online help giving details on command line arguments

infile

Input file name

header_file

Name of the header text file to be read/written.

iupdn

Switch to select run mode

0=Upload headers from text file

1=Down load headers from *.seg to text file

Format Header Text File, Geophone Line:
rec# pic sp sx sy sz vp rx ry rz gidb

rec# = trace number

sp = shot point number

sx = shot x-coord (Pos. East)

sy = shot y-coord (Pos. North)

sz = shot ground elev

vp = receiver station number

rx = receiver x-coord

ry = receiver y-coord

rz = receiver ground elev

pic = pick time in seconds

gidb = instrument gain

shtazi = shot polarization azimuth from north (degrees)

shtver = shot polarization from vertical (degrees)

geoazi = geophone polarization azimuth from north (deg.)

geover = geophone polarization from vertical (deg.)

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

EXAMPLE:
bhed pwav.seg pwav.xyz 1

Down loads headers from file pwav.seg to header text file pwav.xyz

FILES

bhedxxxx.seg

Output, data set with new headers. Named according to convention (first 4char bhed, the next 4char are the first 4char of the input file name, suffix .seg). This is only output if iupdn=0

standard output

produces a progress bar

bhedxxxx.lst

echo check of input parameters, header info.

SEE ALSO

bhelp(1), bsegy(5)

BUGS

No known bugs. WARNING: The segy standard uses integers to store source and geophone coordinates. These integers are scaled by a multiplicative factor (or divisor). The code is hardwired for values in the thousands of meters. You may need to look at the multiplicative scale factor (smul1 and smul2 header values, negative divides, positive multiplies) to make sure you don’t loose precision in your work. It would be more work, but one could add a more complicated section to the code to fix this, and that code would choose the optimal scale factor values for smul1 and smul2 headers.

COPYRIGHT

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.

AUTHOR

P. Michaels, PE. <paulmichaels@.boisestate.edu>