next up previous contents
Next: Setting, Editing, and Viewing Up: Byte Swapping Previous: SWAPBYTES - Swap the   Contents

SUSWAPBYTES - Swap the Bytes of SU Data

If you transport SU data (data with SU headers) between systems, you have to swap both the data and the SU headers. The program suswapbytes is provided to do this. The command sequence

% suswapbytes < data.su format=0 > data.su.swapped
will swap data in the SU format from a machine of the reverse endian to the byte order of your system.

The command sequence

% suswapbytes < data.su format=1 > data.su.swapped
will swap data in the SU format that is in your system's byte order to the opposite byte order. You would use this if you were transporting your SU data from you system to another system of the opposite byte order.



John Stockwell 2007-04-10