next up previous contents
Next: SURAMP and SUTAPER - Up: Editing SU Data Previous: Time gating   Contents

SUSORT - sort on any SEGY header keywords

One of the advantages of working in the Unix operating system is that when a superior Unix system call for a particular operation exists, it is advantageous to use that call to perform the necessary task. Such a task is sorting, and the Unix ``sort'' command is just such a utility.

Susort takes advantage of the Unix system sort command to permit the sorting of traces by header field key work.

For example, sorting data (with values in ascending order) for two fields (cdp and offset) would be done via:

% susort <indata.su >outdata.su cdp offset			
In decending order for, offset, and ascending order for cdp
% susort <indata.su >outdata.su cdp -offset			
Note: Only the following types of input/output are supported Disk input to any output, but pipe input to disk output.

Please see the demo in $CWPROOT/src/demos/Sorting_Traces for specific examples of trace sorting.


next up previous contents
Next: SURAMP and SUTAPER - Up: Editing SU Data Previous: Time gating   Contents
John Stockwell 2007-04-10