Skip to main content

Minimal Python implementation of SegyIO

Project description

pysegy

CI Docs codecov PyPI version

pysegy is a minimal Python library for working with SEGY Rev 1 data. The project provides helpers to read and write files as well as utilities to scan large surveys without loading every trace in memory.

Capabilities

  • Read complete SEGY files with segy_read and access both binary and trace headers.
  • Write new data sets using segy_write from NumPy arrays.
  • Lazily inspect large archives via segy_scan and the SegyScan object.
  • Retrieve individual header fields with automatic scaling through get_header.
  • Compatible with any fsspec filesystem for local or remote storage.

Installation

Install the project in editable mode from the repository root:

python -m pip install -e .

Or to install the latest pypi release

pip install pysegy

Testing

Run the unit tests with pytest:

pytest -vs

The tests run automatically on GitHub Actions with coverage reports uploaded to Codecov.

Inspiration

This project started as a lightweight port of the Julia package SegyIO.jl. The goal is to provide a similar user experience for Python while keeping the code base small and easy to understand.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysegy-0.4.2.dev0.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysegy-0.4.2.dev0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file pysegy-0.4.2.dev0.tar.gz.

File metadata

  • Download URL: pysegy-0.4.2.dev0.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysegy-0.4.2.dev0.tar.gz
Algorithm Hash digest
SHA256 d6e32d49054cce9642b58188f8140e2837362efaca4574e0be5f2bf61096b8b6
MD5 897f55fe250cb9147b0d4765450636dc
BLAKE2b-256 02300e9f3ed935de170cbbd30f5966149d1963b2e775698a8318b091c892a8d1

See more details on using hashes here.

File details

Details for the file pysegy-0.4.2.dev0-py3-none-any.whl.

File metadata

  • Download URL: pysegy-0.4.2.dev0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysegy-0.4.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 992ef7a8d18eea6fd9e69ea1dfc8e9b77407b9bedec8cd6edae887825d1d759a
MD5 b4c9aad720b26b11fa7289f837a3b58c
BLAKE2b-256 9f444f9928506cdb97e09271c3baf5cba4ef4d6152528371843014cfcd25efca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page