next up previous contents
Next: SEGDREAD - Other SEG Up: Reading and Writing Data Previous: SEGYHDRS - make SEG-Y   Contents

BHEDTOPAR, SETBHED - Editing the binary header file

The binary header file must be converted to an ASCII form, to be edited. The program bhedtopar permits the ``binary'' file to be written in the form of a ``parfile''
% bhedtopar  < binary outpar=binary.par
which for the case of the header file created for the test SU data appears as follows
jobid=1
lino=1
reno=1
ntrpr=0
nart=0
hdt=4000
...
The values that are assigned to the various header files may be edited, and be reloaded into the header file via setbhed
% setbhed bfile=binary par=binary.par
Individual header field values may also be set. For example
% setbhed bfile=binary par=binary.par lino=3
which uses the contents of binary.par but with the field lino set to 3.

Finally, the tape may be written via a command sequence like this

% segywrite tape=/dev/rmtx verbose=1 < data.su
taking care to note that the files ``header'' and ``binary'' are in the current working directory. You may use different names for these files, if you wish. Segywrite has a ``bfile='' and an ``hfile='' option to permit you to input the files by the different names you choose.


next up previous contents
Next: SEGDREAD - Other SEG Up: Reading and Writing Data Previous: SEGYHDRS - make SEG-Y   Contents
John Stockwell 2007-04-10