--- id: segyio version: "1.9.14" license: LGPL-3.0-or-later license_treatment: copyleft maintenance: aging --- # segyio — Simple & fast IO for SEG-Y files License: copyleft · Maintenance: aging · Downloads: 211.0K/mo ## What it is and what it does Segyio is a Python binding to a lightweight C library for reading and writing SEG-Y formatted seismic data files. It provides low-level access to binary headers, textual headers, individual traces, and trace metadata with a native Python interface that integrates with numpy. The library makes assumptions to keep the implementation simple—all traces in a file must have the same sample size, and all lines must have the same number of traces—and is designed primarily for modifying or adapting existing files rather than creating fully spec-compliant files from scratch. The package targets geophysicists, seismic data processors, and embedded applications that need straightforward SEG-Y interaction without the complexity of a full-featured geophysical framework. It has been in production use since 2016 and supports current Python versions (3.10–3.14). The single runtime dependency is numpy, keeping the footprint minimal. Use it for: - Load seismic survey data from SEG-Y files into numpy arrays for analysis and visualization in Jupyter notebooks or scientific pipelines. - Extract and modify trace headers and binary metadata from SEG-Y files for quality control or data preprocessing workflows. - Batch convert or resample seismic traces by reading SEG-Y, processing in numpy, and writing modified traces back to disk. - Integrate SEG-Y file access into custom geophysical applications or embedded systems without heavyweight dependencies. - Inspect and validate SEG-Y file structure and geometry before feeding data into specialized seismic processing software. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Segyio reads and writes SEG-Y formatted seismic data files, providing a Python interface with numpy integration for accessing binary headers, textual headers, traces, and trace metadata. Yes, if you work with SEG-Y seismic data and need straightforward Python access. The package is stable (Production/Stable status), has no known vulnerabilities, and carries minimal dependencies. Install friction is moderate due to C bindings, but pre-built wheels are available for common platforms. The copyleft license (LGPL-3.0-or-later) requires derivative works to remain open-source; review this if you plan to modify or embed the library in proprietary code. Maintenance is aging (255 days since last release), so expect slower response to new issues. ## Install pip install segyio uv add segyio poetry add segyio ## Installing segyio Before you install: Medium install friction due to compiled C bindings, but pre-built wheels cover Python 3.10–3.12 across macOS, Linux, and Windows architectures. Last release was 255 days ago; repository is active and not archived, though maintenance status is aging. License in practice: Licensed under LGPL-3.0-or-later (copyleft). Any derivative work or modification must remain open-source under the same license; proprietary applications cannot link statically without compliance review. Quickstart: pip install segyio import segyio import numpy as np with segyio.open('file.sgy') as f: traces = np.array([f.trace[i] for i in range(f.tracecount)]) Requires a C compiler and development headers at build time if wheels are unavailable for your platform; Python >=3.10 required. Verify before relying: - Whether segyio handles SEG-Y variants beyond the documented assumptions (uniform trace length, uniform traces-per-line) without data loss or corruption. - Performance characteristics for large files (file size thresholds, memory usage patterns). - Compatibility with non-standard or legacy SEG-Y dialects used in specific geophysical workflows. ## Package facts - License: LGPL-3.0-or-later (copyleft) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 211.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags SEG-Y file reader writer, seismic data format python, segy file io library, geophysical data processing, seismic trace access, geophysics, seismic-data, file-format [View on SkillFed](https://skillfed.io/packages/segyio) · [View on PyPI](https://pypi.org/project/segyio/)