segyio

Read, write, and manipulate SEG-Y seismic data with Python.

46|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill segyio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segyio
Source: https://github.com/SteadfastAsArt/geoscience-skills/tree/main/segyio
Command: npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill segyio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires segyio, numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Read, write, and manipulate SEG-Y seismic data efficiently.

Core Features & Use Cases

  • Fast SEG-Y I/O with Python bindings for traces, headers, and 3D inline/crossline access.
  • Read, modify, and subset traces and headers, and create new SEG-Y files from arrays.
  • Integrate with geoscience workflows and complementary tools for end-to-end seismic data processing.

Quick Start

Install segyio and use segyio.open to read traces and headers, and segyio.create to write new SEG-Y files from arrays.

Frequently Asked Questions about segyio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write SEG-Y seismic data in Python?

To read and write SEG-Y seismic data in Python, use segyio.open to access traces and headers, and segyio.create to generate new SEG-Y files from numpy arrays.

What is the best way to access 3D inline and crossline geometry from SEG-Y files?

Accessing 3D inline and crossline geometry from SEG-Y files is handled by segyio, which provides fast Python bindings to navigate the seismic volume and extract subsets based on inline-xline coordinates.

Can I manipulate SEG-Y trace headers and extract data subsets?

Yes, you can manipulate SEG-Y trace headers and extract subsets using segyio. The library allows you to read, modify, and subset specific traces and headers efficiently within your seismic processing workflow.

Do I need numpy to create new SEG-Y files from arrays?

Yes, you need numpy to create new SEG-Y files from arrays, as segyio relies on numpy arrays to structure the trace data and headers before writing them to the output file using segyio.create.

How do I integrate SEG-Y I/O with existing geoscience workflows?

You integrate SEG-Y I/O with geoscience workflows by using segyio to read seismic traces and headers into numpy arrays, which can then be processed by complementary geoscience tools for end-to-end analysis.