SYNOPSIS
PERL PROGRAM NAME:
AUTHOR: Juan Lorenzo (Perl module only)
DATE:
DESCRIPTION:
Version:
USE
NOTES
Examples
SYNOPSIS
SEISMIC UNIX NOTES SUSWAPBYTES - SWAP the BYTES in SU data to convert data from big endian
to little endian byte order, and vice versa
suswapbytes < stdin [optional parameter] > sdtout
format=0 foreign to native
=1 native to foreign
swaphdr=1 swap the header byte order
=0 do not change the header byte order
swapdata=1 swap the data byte order
=0 do not change the data byte order
ns=from header if ns not set in header, must be set by hand
Notes:
The 'native' endian is the endian (byte order) of the machine you are
running this program on. The 'foreign' endian is the opposite byte order.
Examples of big endian machines are: IBM RS6000, SUN, NeXT
Examples of little endian machines are: PCs, DEC
Caveat: this code has not been tested on DEC
Credits:
CWP: adapted for SU by John Stockwell
based on a code supplied by:
Institute fur Geophysik, Hamburg: Jens Hartmann (June 1993)
Trace header fields accessed: ns
User's notes (Juan Lorenzo) untested
CHANGES and their DATES
Import packages
instantiation of packages
Encapsulated hash of private variables
sub Step
collects switches and assembles bash instructions by adding the program name
sub note
collects switches and assembles bash instructions by adding the program name
sub clear
sub format
sub ns
sub swapdata
sub swaphdr
sub get_max_index
max index = number of input variables -1