*scratch*

It is not a diary the most people have rather a *scratch* Emacs buffer. It keeps notes about everything related to Linux, Open Source, UNIX, MacOSX and software engineering.

Saturday, February 12, 2005

 

Seismic Uni* tips

Generate new binary and ASCII headers:
    cat my.sgy | segyread tape=- bfile=/tmp/binary hfile=/tmp/header | segyhdrs endian=0 bfile=./my.binary hfile=my.header ns=1750 dt=4000 jobid=1111 lino=1111 reno=1234


endian=0 is a i386 system, for example Linux
ns number of samples per trace
dt sample interval
jobid, lino, reno must be taken from the original SEGY file if necessary.

Binary header content could be printed in an ASCII form called parameters:
    cut ./my.sgy | segyread tape=- bfile=/tmp/binary hfile=/tmp/header


SEGY file create from an existing one. Some filters could be inserted between to modify the data.
    cut ./my.sgy | segyread tape=- bfile=/tmp/binary hfile=/tmp/header | segywrite endian=0 hfile=./all.header bfile=./1111.binary verbose=1 buff=0 tape=./1.sgy


Print trace headers or/and file header in ASCII:
    cut ./my.sgy | segyread tape=- bfile=/tmp/binary hfile=/tmp/header | suascii bare=2


bare=2 is for headers
bare=1 prints traces amplitudes
bare=0 both traces amplitudes and headers

Among others SUMAX and SUMEAN to print max/min and a global weigth. SURESAMP allows to resample seismic traces by sample rate and number of samples.

Print trace header field by key:
    cut my.sgy | segyread tape=- bfile=/tmp/binary hfile=/tmp/header | sugethw tracl

tracl is a keyword to print from trace header, here some tips:

tracl is a trace sequence number within line. [1]
tracr is a trace sequence number within reel/file. [4]
fldr is a field record number aka inline [9]
tracf is a trace number with field record. [13]
ep is ShortPoint aka energy source point [17]
cdp is ensemble point [21]
cdpt is trace number within CDP ensemble [25]


Get a help aka list of all SU commands/utils:

    suhelp


Look for a entry of string in SU docs:

    sufind find_a_string


Grep a name from the list with short description:

    suname | fgrep -i ascii


Remember! The most of all names are capitalized.

Comments: Post a Comment

<< Home

Archives

December 2004   January 2005   February 2005   March 2005   May 2005   July 2005   October 2005   January 2006   March 2006   May 2006   July 2006   December 2006   January 2007   February 2007   May 2007   July 2007   November 2007   January 2008   February 2008   July 2008   August 2008   September 2008   November 2008   April 2009  

This page is powered by Blogger. Isn't yours?