Trace padding#
Pad traces in SEG-Y file(s) to correct DelayRecordingTime.
Description#
Check for vertical offsets in SEG-Y file(s) using trace header keyword DelayRecordingTime (delrt) and pad seismic trace with zeros to compensate variable recording starting times.
- Detect changing DelayRecordingTime based on trace header values
- Split input profile into multiple segments of different derlt
- Pad start (top) and end (bottom) of traces per segment to minimum and maximum delrt (using zeros)
- Write padded data to new SEG-Y file(s)
Usage#
This script is designed to be used from the terminal (i.e. command line).
Command line interface#
The script can handle three different inputs:
- single SEG-Y file (e.g.,
filename.sgy
) - datalist of files to process (e.g.,
datalist.txt
) - directory with input files (e.g.,
/input_dir
)
There are two options to run the script. We recommend using the CLI entry point like:
Alternatively, the script can be executed using the (more verbose) command:
>>> python -m pseudo_3D_interpolation.delrt_padding_segy {filename.sgy | datalist.txt | </directory>} [optional parameters]
Optionally, the following parameters can be specified:
--help
,-h
: Show help.--output_dir {DIR}
: Output directory (either--inplace
or--output_dir
are required!).--suffix {sgy}
: File suffix (default:sgy
). Only used if directory is specified.--filename_suffix {SUFFIX}
: Filename suffix (e.g.pad
,static
) to filter input files. Only used if directory is specified.--txt_suffix {despk}
: Suffix to append to output filename (default:despk
).--byte_delay {109}
: Byte position of input delay times in SEG-Y file(s) (default:109
).--verbose {LEVEL}
: Level of output verbosity (default:0
).
NOTE: Since the total number of traces per file changes, the files cannot be updated inplace!
Last update:
Monday, 03 July 2023 at 09:46:51