bswp

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

bswp - BSU program to byte swap BSEGY data (C-Language Version)

SYNOPSIS

bswp [ -h | infile | idfc | npts ]

DESCRIPTION

Basic Seismic Utilities (BSU) byte swaps data in BSEGY format. Can also be used on Seismic Unix (SU) data (native format, not XDR). The 240 byte headers are a mixture of 4 byte and 2 byte integer, plus some character content. The program byte swaps the trace header according to the definition in file c_bsegy.h, found in the include directory. The data are swapped according to the idfc parameter. Thus, a little endian data file will be swapped to big endian. Applying the program again, to the big endian data will return one to a little endian file. Workstations and PC’s running Linux are typically little endian hosts. This program can be used to toggle between Seismic Unix original and SUXDR data formats. SUXDR is seismic unix external data representation. It is big endian byte order. C-Language Version.

Options

-h

Online help giving details on command line arguments

infile

First argument is usually the input file name

idfc (int)

This is the data format code.

1= 4 byte floating point. (most likely case)

2= 4 byte integer.

3= 2 byte integer.
npts (int)

Number of data samples per trace. This parameter is needed in the event that the host machine is a different endian byte order than the file.

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

EXAMPLE:
bswp w001.seg 1 4000

File w001.seg is processed by bswp. The data are floating point and there are 4000 samples per trace.

FILES

bswpxxxx.seg

named according to convention (first 4char bequ, the next 4char are the first 4char of the input file name, suffix .seg)

standard output

produces a progress bar

bswpxxxx.lst

Echo check of input parameters in listing file.

SEE ALSO

bhelp(1) c_bsegy(5)

BUGS

no known bugs

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>