import pysegy as seg
# path to a SEGY file shipped with the repository
= "../data/overthrust_2D_shot_1_20.segy"
path
# load the file into memory
= seg.segy_read(path)
block
# file header information
print(block.fileheader.bfh.ns)
Read
This page shows how to read SEGY data using pysegy.
Use pysegy.segy_read to read an entire file in one call. The returned pysegy.SeisBlock contains the file header, trace headers and data array.
Back to top