next up previous contents
Next: SWAPBYTES - Swap the Up: Core Seismic Unix Programs Previous: SUPASTE - Paste SU   Contents

Byte Swapping

Even the best of human intentions can be circumvented. This is the case with the IEEE floating point data format. The implementation of the IEEE standard by chip manufacturers has resulted in two types of commonly encountered data types. These are called ``big-endian'' (high-byte) or ``little-endian'' (low-byte) types. Little-endian machines are Intel or Dec-based, whereas big-endian is every other chip manufacturer.

Transporting data (either regular floating point, or SU data) requires that the bytes be swapped, in order for the data to be read. Two issues are necessary to address. These are the issues of swapping the bytes in

Two programs are provided to perform these tasks. These are



Subsections

John Stockwell 2007-04-10