Skip to main content

Minimal Python implementation of SegyIO

Project description

pysegy

CI Docs codecov

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 .

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.2.0.tar.gz (103.5 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.2.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file pysegy-0.2.0.tar.gz.

File metadata

  • Download URL: pysegy-0.2.0.tar.gz
  • Upload date:
  • Size: 103.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pysegy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af665ea8aded236ecc6eb1e0f03e8b9039e3ce211c238df9bba281730901a196
MD5 aec6ad2d183f844b1c235584027d9057
BLAKE2b-256 3966c2f3abaf8b9404546bae02778bf4b84ed40d8aac064e1e4c99c54b326561

See more details on using hashes here.

File details

Details for the file pysegy-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pysegy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8110cddab95129f49c0b5ddf1fef1c8ea5a3f99df736fd1838b5ee10b8740a8
MD5 556b8f3f792bd945fd99b21af172ae37
BLAKE2b-256 71353c1e692f30a930efecc6ad767fc006bc813daa6c877c00121b4fbf7f74e5

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