Reads a binary SEGY header and converts it to an ASCII file that can then be edited prior to converting back to binary using SETBHED. Once it has been converted back to binary it can be used by SEGYWRITE to output an SU file in SEGY format.
Produces a binarary header file (as required for SEGYWRITE or read by BHEDTOPAR) and also the EBCDIC header (actually as an ASCII file so it can be edited) that is also required by SEGYWRITE.
bhedtopar < filename.bhead outpar=filename.ascii
Example :
bhedtopar < raw.bhead outpar=raw.ascii
This example reads binary header file raw.bhead and converts it to an ASCII par file raw.ascii which can then be edited and converted back to binary using setbhed. For depth migrated files the hdt vale will normally need changing (will be set to the input time sample rate). For Geodepth the fold will need setting to the correct value, the tsort (2 for CDP and 4 for stacked) and mfeet to 1 for metres.
See also : setbhed , segywrite