import pysegy as seg
# scan all matching files in the repository data directory
= "../data"
data_dir = seg.segy_scan(data_dir, "overthrust_2D_shot_*.segy")
scan
print(len(scan.shots)) # number of shot records
print(scan.counts[0]) # traces in the first shot
Scan
Scanning allows inspecting large surveys without loading everything in memory.
The pysegy.segy_scan function summarises multiple files and returns a pysegy.SegyScan that can lazily read data for each shot.
Back to top